Created
December 20, 2018 07:41
-
-
Save dachi023/c88a85223b9ce5acfc9ac6e67b79c68a to your computer and use it in GitHub Desktop.
Connehito Advent Calendar 2018.12.20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:10-alpine AS builder | |
WORKDIR /work | |
COPY package.json yarn.lock ./ | |
RUN yarn | |
COPY src ./src | |
COPY public ./public | |
RUN yarn build | |
FROM nginx:alpine | |
COPY default.conf /etc/nginx/conf.d/default.conf | |
COPY --from=builder /work/build /usr/share/nginx/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment