Skip to content

Instantly share code, notes, and snippets.

@steevehook
Created March 13, 2019 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steevehook/45a19bd168596abe0f9b09165e2ef6df to your computer and use it in GitHub Desktop.
Save steevehook/45a19bd168596abe0f9b09165e2ef6df to your computer and use it in GitHub Desktop.
FROM node:alpine as builder
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
RUN npm run build
FROM nginx
ENV PORT 3000
EXPOSE $PORT
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/build /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment