Skip to content

Instantly share code, notes, and snippets.

@pwalters04
Created August 4, 2019 18:19
Show Gist options
  • Save pwalters04/bdc34c30d7d0e945dc71a71615c8146a to your computer and use it in GitHub Desktop.
Save pwalters04/bdc34c30d7d0e945dc71a71615c8146a to your computer and use it in GitHub Desktop.
codehouse
FROM node:10 as react-build
WORKDIR /Users/pwalters/VMWARE/test_React/stickwithIT/post-app
COPY package.json yarn.lock ./
RUN yarn
COPY . ./
RUN yarn build
# Stage 2 - the production environment
FROM nginx: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