Skip to content

Instantly share code, notes, and snippets.

@diegomais
Created September 13, 2020 23:57
Show Gist options
  • Save diegomais/e73fef20808251885a86ee4cbe9af9d5 to your computer and use it in GitHub Desktop.
Save diegomais/e73fef20808251885a86ee4cbe9af9d5 to your computer and use it in GitHub Desktop.
React
FROM node:12 AS build
WORKDIR /app
COPY package* yarn.lock ./
RUN yarn install
COPY public ./public
COPY src ./src
RUN yarn run build
FROM nginx:alpine
COPY --from=build /app/build /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment