nginx conf

This commit is contained in:
Witalij Poljatchek 2024-01-11 00:15:38 +01:00
parent b4fdeaff5a
commit 62edbd20c5
2 changed files with 14 additions and 7 deletions

View File

@ -5,11 +5,7 @@ RUN node -v
WORKDIR /app WORKDIR /app
COPY . . COPY . .
FROM nginx FROM nginx
RUN ls COPY --from=build /app /usr/share/nginx/html/
RUN ls RUN rm /etc/nginx/conf.d/default.conf
COPY --from=build . /usr/share/nginx/html/ COPY _nginx/nginx.conf /etc/nginx/conf.d
RUN ls /usr/share/nginx/html/
#RUN rm /etc/nginx/conf.d/default.conf
#COPY _nginx/nginx.conf /etc/nginx/conf.d

11
_nginx/nginx.conf Normal file
View File

@ -0,0 +1,11 @@
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html; }
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}