fix: replace nginx.conf entirely, bypass entrypoint conflict

This commit is contained in:
2026-06-25 14:54:22 +07:00
parent b0bd731fc7
commit e3a7b766ba
2 changed files with 22 additions and 8 deletions

View File

@@ -8,6 +8,6 @@ RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
RUN rm -f /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/app.conf
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -1,10 +1,24 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
worker_processes auto;
location / {
try_files $uri $uri/ /index.html;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}