nginx conf
This commit is contained in:
parent
b4fdeaff5a
commit
62edbd20c5
10
Dockerfile
10
Dockerfile
|
@ -5,11 +5,7 @@ RUN node -v
|
|||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
|
||||
FROM nginx
|
||||
RUN ls
|
||||
RUN ls
|
||||
COPY --from=build . /usr/share/nginx/html/
|
||||
RUN ls /usr/share/nginx/html/
|
||||
#RUN rm /etc/nginx/conf.d/default.conf
|
||||
#COPY _nginx/nginx.conf /etc/nginx/conf.d
|
||||
COPY --from=build /app /usr/share/nginx/html/
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY _nginx/nginx.conf /etc/nginx/conf.d
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue