Skip to content

Commit

Permalink
๐Ÿšš chore: path ๋ฌธ์ œ ํ•ด๊ฒฐ - build -\> dist, packages/fronted/dist =\> dist
Browse files Browse the repository at this point in the history
  • Loading branch information
swkim12345 committed Nov 11, 2024
1 parent 5127429 commit 6505163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine
WORKDIR /packages
COPY . .
RUN yarn install --frozen-lockfile
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-alpine AS builder
FROM node:20-alpine AS builder
WORKDIR /packages
COPY . .
RUN yarn install --frozen-lockfile
RUN yarn workspace frontend build

# Nginx ์„œ๋ฒ„๋กœ ๋นŒ๋“œ๋œ ํŒŒ์ผ ์„œ๋น™
FROM nginx:alpine
COPY --from=builder /packages/frontend/build /usr/share/nginx/html
COPY --from=builder /packages/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 6505163

Please sign in to comment.