-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds docker ignore file for specifying the context * Updates package.json and package-lock.json files * Adds Dockerfile * Updates README.md
- Loading branch information
1 parent
d521775
commit 50289e2
Showing
5 changed files
with
44 additions
and
3 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,16 @@ | ||
# Ignore everything | ||
* | ||
|
||
# Allow files and directories | ||
!src/* | ||
!webpack.config.js | ||
!package.json | ||
!package-lock.json | ||
!.babelrc | ||
|
||
# Ignore unnecessary files inside allowed directories | ||
# This should go after the allowed directories | ||
**/*~ | ||
**/*.log | ||
**/.DS_Store | ||
**/Thumbs.db |
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,14 @@ | ||
FROM node:18-alpine as build-deps | ||
|
||
WORKDIR /usr/src/app | ||
ENV NODE_OPTIONS=--openssl-legacy-provider | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
COPY . ./ | ||
RUN npm run release-build | ||
|
||
FROM nginx:alpine | ||
|
||
COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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