nginx.conf im Root erstellt + Dockerfile.web korrigiert
Deploy Fitness App / deploy (push) Failing after 1m12s

This commit is contained in:
2026-05-09 13:33:45 +02:00
parent 25c7172bc6
commit 112b9410b0
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -9,6 +9,6 @@ RUN pnpm run build
FROM nginx:stable-alpine FROM nginx:stable-alpine
COPY --from=build /app/apps/web/dist /usr/share/nginx/html COPY --from=build /app/apps/web/dist /usr/share/nginx/html
COPY apps/web/nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]
+19
View File
@@ -0,0 +1,19 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://fitness-api:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}