Builds for
1 pipeline
passed
in
11 minutes 35 seconds
도커 파일 세팅
Showing
5 changed files
with
70 additions
and
0 deletions
.dockerignore
0 → 100644
docker-compose.yml
0 → 100644
server/Dockerfile
0 → 100644
web/Dockerfile
0 → 100644
| 1 | +FROM node:14-alpine as build | ||
| 2 | + | ||
| 3 | +WORKDIR /usr | ||
| 4 | + | ||
| 5 | +COPY common ./common | ||
| 6 | +COPY web ./web | ||
| 7 | + | ||
| 8 | +WORKDIR /usr/common | ||
| 9 | + | ||
| 10 | +RUN yarn install | ||
| 11 | + | ||
| 12 | +WORKDIR /usr/web | ||
| 13 | + | ||
| 14 | +RUN yarn install | ||
| 15 | +RUN yarn build | ||
| 16 | + | ||
| 17 | +FROM nginx:latest | ||
| 18 | + | ||
| 19 | +COPY web/default.conf /etc/nginx/conf.d/default.conf | ||
| 20 | +COPY --from=build /usr/web/build /usr/web/build | ||
| 21 | + | ||
| 22 | +EXPOSE 80 | ||
| 23 | + | ||
| 24 | +CMD ["nginx", "-g", "daemon off;"] | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment