Slide 13
Slide 13 text
Dockerfile
1. # ։ൃڥ͚
2. FROM node:10.16.1-alpine as dev-env # as Λ͚ͭΔ͜ͱͰϏϧυڥʹ໋໊ΛՃ
3. WORKDIR /app
4. COPY . /app
5. RUN apk update
6. RUN yarn
7. CMD ["yarn", "dev"]
8.
9. # Ϗϧυڥ͚
10. FROM node:10.16.1-alpine as build-env # as Λ͚ͭΔ͜ͱͰϏϧυڥʹ໋໊ΛՃ
11. WORKDIR /app
12. COPY . /app
13. RUN apk update
14. RUN yarn
15. RUN yarn build
16. # ߹ʹΑͬͯՌͷ S3 ΞοϓϩʔυͳͲ