refactor(docker): remove inline nginx config for SPA routing in Dockerfile.frontend
- Eliminates embedded nginx configuration to simplify the Dockerfile and improve maintainability, assuming routing is now handled via a separate config file or base image.
lemon-mint committed
Nov 1, 2025 at 02:46 UTC
003cb387ee4079b8833bca996e77cebc360b604c
1 file changed
-12
Dockerfile.frontend
-12
@@ -17,18 +17,6 @@ COPY --from=builder /src/cmd/webclient/service-worker.js /usr/share/nginx/html/s
17
COPY --from=builder /src/cmd/webclient/wasm_exec.js /usr/share/nginx/html/wasm_exec.js
18
COPY --from=builder /src/bin/main.wasm /usr/share/nginx/html/main.wasm
19
20
-# Create nginx config for SPA routing
21
-RUN echo 'server { \
22
- listen 80; \
23
- server_name _; \
24
- root /usr/share/nginx/html; \
25
- index index.html; \
26
- \
27
- location / { \
28
- try_files $uri $uri/ /index.html; \
29
- } \
30
-}' > /etc/nginx/conf.d/default.conf
31
-
20
EXPOSE 80
21
22
CMD ["nginx", "-g", "daemon off;"]