Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Feb 28, 2024
1 parent 971b0cf commit ea0c5dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/user/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM node:18-alpine as nodebuilder
FROM node:18.12.0 AS builder

WORKDIR /app

RUN apk add --no-cache libc6-compat

COPY manifests ./
COPY package.json yarn.lock ./

RUN yarn install
RUN yarn install --immutable

COPY packs ./

Expand All @@ -26,10 +25,10 @@ server {\
}\
}" > /etc/nginx/conf.d/default.conf

COPY --from=nodebuilder /app/packages/user/dist /usr/share/nginx/html
COPY --from=builder /app/packages/user/dist /usr/share/nginx/html

# 3000포트 열기
EXPOSE 3000

# Nginx 시작
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit ea0c5dc

Please sign in to comment.