• This project
    • Loading...
  • Sign in

강동현 / nodejs-game

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • nodejs-game
  • web
  • Dockerfile
  • 강동현's avatar
    웹서버 설정에 인증서 추가 및 https 포트 개방 · c98fafa4
    c98fafa4 Browse Files
    강동현 authored 2021-06-10 17:05:05 +0900
Dockerfile 339 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
FROM node:14-alpine as build

WORKDIR /usr

COPY common ./common
COPY web ./web

WORKDIR /usr/common

RUN yarn install

WORKDIR /usr/web

RUN yarn install
RUN yarn build

FROM nginx:latest

COPY web/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /usr/web/build /usr/web/build

EXPOSE 443

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