fix(dockerfile) changed port with nginx static route

This commit is contained in:
Deforest6342 committed 2026-05-09 12:05:26 +03:00
1 parent 92e440deb0
commit 5c06c7b7d2
2 files changed
+5 -17

No files matched your search

+4 -15
View File
@@ -14,20 +14,9 @@ FROM nginx:stable-alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY <<EOF /etc/nginx/conf.d/default.conf
COPY <<'EOF' /etc/nginx/conf.d/default.conf
server {
listen 89;
location /register {
proxy_pass http://backend:8090;
proxy_set_header Host \$host;
}
location /login {
proxy_pass http://backend:8090;
proxy_set_header Host \$host;
}
listen 80;
location /api {
proxy_pass http://backend:8090;
}
@@ -36,11 +25,11 @@ server {
location / {
root /usr/share/nginx/html;
index index.html;
try_files \$uri \$uri/ /index.html;
try_files $uri $uri/ /index.html;
}
}
EOF
EXPOSE 89
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]