-
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.
- Loading branch information
Showing
4 changed files
with
84 additions
and
1 deletion.
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,13 @@ | ||
.dockerignore | ||
.git | ||
|
||
_output/ | ||
logs/ | ||
|
||
README.md | ||
CONTRIBUTING.md | ||
|
||
docker-compose.yaml | ||
|
||
.github/ | ||
.husky |
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
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,23 @@ | ||
FROM node:20.11.0 as builder | ||
|
||
WORKDIR /app | ||
|
||
ADD . . | ||
|
||
RUN rm -rf node_modules | ||
RUN npm install -g pnpm | ||
RUN pnpm install | ||
RUN pnpm run build | ||
|
||
FROM nginx | ||
|
||
WORKDIR /usr/share/nginx/html/ | ||
|
||
USER root | ||
|
||
COPY --from=builder /app/nginx.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=builder /app/dist /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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
server { | ||
listen 80; | ||
|
||
gzip on; | ||
gzip_min_length 1k; | ||
gzip_comp_level 9; | ||
gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml application/wasm; | ||
gzip_vary on; | ||
gzip_disable "MSIE [1-6]\."; | ||
|
||
default_type application/wasm; | ||
|
||
root /usr/share/nginx/html; | ||
include /etc/nginx/mime.types; | ||
location / { | ||
try_files $uri /index.html; | ||
} | ||
} |