MOBILE-3320 docker: Fix non-root urls

main
Noel De Martin 2021-05-04 09:30:08 +02:00
parent 4933170be2
commit 2326be0911
2 changed files with 13 additions and 1 deletions

View File

@ -16,5 +16,6 @@ RUN ${build_command}
## SERVE STAGE ## SERVE STAGE
FROM nginx:alpine as serve-stage FROM nginx:alpine as serve-stage
# Copy assets # Copy assets & config
COPY --from=build-stage /app/www /usr/share/nginx/html COPY --from=build-stage /app/www /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

11
nginx.conf 100644
View File

@ -0,0 +1,11 @@
server {
listen 0.0.0.0:80;
root /usr/share/nginx/html;
server_tokens off;
access_log off;
location / {
try_files $uri $uri/ /index.html;
}
}