Created
January 31, 2019 12:53
-
-
Save karol-pawlowski/b9a75328b65dba9c0e899d3128def53e to your computer and use it in GitHub Desktop.
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.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