Skip to content

Instantly share code, notes, and snippets.

@dachi023
Created December 20, 2018 07:41
Show Gist options
  • Save dachi023/c88a85223b9ce5acfc9ac6e67b79c68a to your computer and use it in GitHub Desktop.
Save dachi023/c88a85223b9ce5acfc9ac6e67b79c68a to your computer and use it in GitHub Desktop.
Connehito Advent Calendar 2018.12.20
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