Merge pull request #2741 from NoelDeMartin/MOBILE-3320
MOBILE-3320 docker: Fix non-root urls
This commit is contained in:
commit
797b7f48cc
@ -16,5 +16,6 @@ RUN ${build_command}
|
||||
## SERVE STAGE
|
||||
FROM nginx:alpine as serve-stage
|
||||
|
||||
# Copy assets
|
||||
# Copy assets & config
|
||||
COPY --from=build-stage /app/www /usr/share/nginx/html
|
||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
11
nginx.conf
Normal file
11
nginx.conf
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user