Skip to content

Commit

Permalink
๐Ÿ“ฆ๏ธ ci: dockerfile ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
baegyeong committed Nov 14, 2024
1 parent 74f4f92 commit 2339e5f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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/packages/frontend/dist /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 2339e5f

Please sign in to comment.