Created
September 27, 2019 09:52
-
-
Save bayzi/ea8424fad93adbdccc3483f7fb2db00b 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.16.3-alpine as builder | |
WORKDIR /app | |
COPY package.json package-lock.json ./ | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
FROM nginxinc/nginx-unprivileged | |
COPY --from=builder /app/build /usr/share/nginx/html/ | |
COPY nginx.conf /etc/nginx/conf.d/default.conf | |
EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment