add nginx-conf

This commit is contained in:
muhammadeko 2022-04-30 15:33:30 +07:00
parent 5d4e3d834f
commit aa094d665c
No known key found for this signature in database
GPG Key ID: 51366716C10E98B1
2 changed files with 16 additions and 0 deletions

View File

@ -9,4 +9,5 @@ FROM nginx:alpine
WORKDIR /usr/share/nginx/html
RUN rm -rf *
COPY --from=builder /app/build .
COPY nginx.conf /etc/nginx/conf.d/default.conf
ENTRYPOINT ["nginx","-g","daemon off;"]

15
nginx.conf Normal file
View File

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