Created
December 11, 2019 11:35
-
-
Save IniZio/e59d7b0a34c2f319231bea32546c4571 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:12 as builder | |
WORKDIR /usr/src/app | |
COPY package.json package-lock.json ./ | |
RUN npm ci | |
COPY . . | |
RUN npm run build | |
FROM nginx:1.12-alpine | |
COPY --from=builder /usr/src/app/build /usr/share/nginx/html | |
EXPOSE 80 | |
CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment