docker updates

This commit is contained in:
LionTion committed 2026-10-24 12:21:21 +02:00
1 parent c809740520
commit 17f2eacb4a
2 files changed
+16

No files matched your search

+1
View File
@@ -18,4 +18,5 @@ RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/out /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
+15
View File
@@ -0,0 +1,15 @@
server {
listen 80;
server_name game;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /serwist/ {
add_header Service-Worker-Allowed "/";
}
}