pref: update nginx config
This commit is contained in:
parent
898297df9f
commit
75b1821d86
@ -13,7 +13,7 @@ RUN pnpm build
|
|||||||
FROM nginx:stable-alpine as production-stage
|
FROM nginx:stable-alpine as production-stage
|
||||||
|
|
||||||
COPY --from=build-stage /app/nginx/conf.d /etc/nginx/conf.d
|
COPY --from=build-stage /app/nginx/conf.d /etc/nginx/conf.d
|
||||||
COPY --from=build-stage /app/dist /usr/local/nginx/html/
|
COPY --from=build-stage /app/dist /usr/share/nginx/html/
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
@ -13,7 +13,7 @@ server {
|
|||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/local/nginx/html/;
|
root /usr/local/share/html;
|
||||||
try_files $uri $uri/ /index.html;
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user