Skip to content

Instantly share code, notes, and snippets.

@zinevych
Created February 21, 2021 16:16
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 zinevych/377ddadb6dc2e40a722c47feee134799 to your computer and use it in GitHub Desktop.
Save zinevych/377ddadb6dc2e40a722c47feee134799 to your computer and use it in GitHub Desktop.
FROM node:14.15 as build-deps
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn
COPY . ./
RUN yarn build
FROM nginx:1.12-alpine
COPY --from=build-deps /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