Skip to content

Commit

Permalink
hotfix: dockerfile update
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Aug 17, 2023
1 parent 786cae8 commit a1187d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/backend-submodule
13 changes: 12 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18-alpine
# Build stage
FROM node:18-alpine AS build

WORKDIR /app

Expand All @@ -10,4 +11,14 @@ COPY . .

RUN yarn build

# Final stage
FROM node:18-alpine

WORKDIR /app

COPY --from=build /app/package.json /app/yarn.lock ./
COPY --from=build /app/dist ./dist

RUN yarn install --production

CMD ["yarn", "start", "--port", "3000"]

0 comments on commit a1187d1

Please sign in to comment.