-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dockerfile-dev and package.json): 🎉 update package.json depe…
…nds and add dockerfile-dev
- Loading branch information
1 parent
06bb405
commit 5b985c4
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM node:latest as build-stage | ||
COPY . /app | ||
WORKDIR /app | ||
RUN npm install | ||
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build | ||
FROM nginx:alpine as production-stage | ||
COPY --from=build-stage /app/build /usr/share/nginx/html | ||
EXPOSE 80 |
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