Skip to content

Commit

Permalink
chore: 도커 파일 수정 (#406)
Browse files Browse the repository at this point in the history
* chore/#405: 도커파일 수정

* chore/#405: eof
  • Loading branch information
HyeryongChoi committed Sep 14, 2023
1 parent 659049b commit 539e3ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ WORKDIR /app
# build
COPY . /app
RUN yarn build:prod
RUN yarn build:sb
#RUN yarn build:sb

# nginx
FROM nginx:latest
RUN rm -rf /etc/nginx/conf.d
COPY conf /etc/nginx
COPY --from=builder /app/dist /usr/share/nginx/html
COPY --from=builder /app/storybook-static /usr/share/nginx/html/storybook
#COPY --from=builder /app/storybook-static /usr/share/nginx/html/storybook

EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
6 changes: 3 additions & 3 deletions frontend/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ WORKDIR /app
# build
COPY . /app
RUN yarn build:dev
RUN yarn build:sb
#RUN yarn build:sb

# nginx
FROM nginx:latest
RUN rm -rf /etc/nginx/conf.d
COPY conf /etc/nginx
COPY --from=builder /app/dist /usr/share/nginx/html
COPY --from=builder /app/storybook-static /usr/share/nginx/html/storybook
#COPY --from=builder /app/storybook-static /usr/share/nginx/html/storybook

EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 539e3ae

Please sign in to comment.