Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dockerfile #18

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /opt/app
COPY package.json package-lock.json ./
COPY . /
# Install production dependencies only
RUN npm ci
RUN npm install

# Stage 2: Build the application
FROM node:lts-alpine AS builder
Expand All @@ -28,6 +28,8 @@ ENV NODE_ENV=production
# Copy necessary files from the "builder" stage
EXPOSE 5000
COPY --from=builder /opt/app/build ./build
COPY --from=builder /opt/app/docusaurus.config.ts .
COPY --from=builder /opt/app/node_modules ./node_modules
COPY package.json package-lock.json ./
# Define the command to run the application
CMD npm run serve