Skip to content

Commit

Permalink
Add serve and update Dockerfile.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubowiczish committed Aug 13, 2020
1 parent bbc3a0f commit 3b18566
Show file tree
Hide file tree
Showing 3 changed files with 438 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ RUN npm ci --silent
RUN npm install [email protected] -g --silent
COPY . ./
RUN npm run build

FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["serve", "-s", "build"]
Loading

0 comments on commit 3b18566

Please sign in to comment.