Skip to content

Instantly share code, notes, and snippets.

@karol-pawlowski
Created January 31, 2019 12:53
Show Gist options
  • Save karol-pawlowski/b9a75328b65dba9c0e899d3128def53e to your computer and use it in GitHub Desktop.
Save karol-pawlowski/b9a75328b65dba9c0e899d3128def53e to your computer and use it in GitHub Desktop.
FROM node:10.6.0-alpine AS build
WORKDIR /src
COPY ${PROJECT_NAME}/package*.json ./
RUN npm install
COPY ${PROJECT_NAME}/ .
RUN npm run build
FROM nginx:alpine
EXPOSE 80
COPY ${PROJECT_NAME}/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /src/dist/ /var/www/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment