Skip to content

Commit

Permalink
Fix dockerfile (#18)
Browse files Browse the repository at this point in the history
Updates the current dockerfile to build and host docusaurus images
properly.
  • Loading branch information
mhallmark authored Nov 6, 2023
1 parent ec68123 commit b698967
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit b698967

Please sign in to comment.