diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -1,2 +1,11 @@ | |||
| 1 | FROM mhart/alpine-node:14 as builder | ||
| 2 | |||
| 3 | WORKDIR /tmp | ||
| 4 | COPY . . | ||
| 5 | |||
| 6 | RUN yarn && yarn build | ||
| 7 | |||
| 8 | ### | ||
| 9 | # production image | ||
| 1 | FROM nginx:stable-alpine | 10 | FROM nginx:stable-alpine |
| 2 | COPY build /usr/share/nginx/html | 11 | COPY --from=builder /tmp/build /usr/share/nginx/html |
