MOBILE-3320 docker: Fix non-root urls
parent
4933170be2
commit
2326be0911
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue