Skip to content

Commit 040e22a

Browse files
committed
feat: Remove unused build arguments and simplify Nginx configuration for improved performance
1 parent 65aaaca commit 040e22a

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

.github/workflows/docker-build-push-on-tag-or-release.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,3 @@ jobs:
5050
tags: ${{ steps.meta.outputs.tags }}
5151
labels: ${{ steps.meta.outputs.labels }}
5252
push: true
53-
build-args: |
54-
BASE_URL=${{ secrets.BASE_URL }}
55-
AUTH_TOKEN=${{ secrets.AUTH_TOKEN }}

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ RUN pnpm run build
1414

1515
FROM nginx:stable-alpine
1616

17-
RUN sed -i '1idaemon off;' /etc/nginx/nginx.conf
18-
1917
COPY nginx.conf /etc/nginx/conf.d/default.conf
2018

2119
COPY --from=prod /app/dist/ /app

nginx.conf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
server {
22
listen 80 default_server;
33

4-
gzip on;
5-
gzip_min_length 1000;
6-
gzip_types text/plain text/xml application/javascript text/css;
7-
84
root /app;
95

106
# normal routes
117
# serve given url and default to index.html if not found
128
# e.g. /, /user and /foo/bar will return index.html
139
location / {
14-
add_header Cache-Control "no-store";
1510
try_files $uri $uri/index.html /index.html;
1611
}
1712

1813
# files
1914
# for all routes matching a dot, check for files and return 404 if not found
2015
# e.g. /file.js returns a 404 if not found
2116
location ~ \.(?!html) {
22-
add_header Cache-Control "public, max-age=2678400";
2317
try_files $uri =404;
2418
}
2519
}

0 commit comments

Comments
 (0)