diff --git a/docker/Dockerfile b/docker/Dockerfile index 8d46ebc2f1c3355d0bb8c9f166057fc86800af4a..628c435e39fed365c2e5aae9bfc362c66bd9cdab 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,3 +18,6 @@ RUN ember build --environment production FROM nginx:1.21.1-alpine COPY --from=build /src/dist/ /usr/share/nginx/html +COPY docker/nginx.conf /etc/nginx/conf.d/default.conf + +ENTRYPOINT ["nginx", "-g", "daemon off;"] diff --git a/docker/nginx.conf b/docker/nginx.conf new file mode 100644 index 0000000000000000000000000000000000000000..df62576b42f4249f0f68950cf91b11aab608d920 --- /dev/null +++ b/docker/nginx.conf @@ -0,0 +1,13 @@ +server { + root /usr/share/nginx/html; + index index.html index.htm; + listen 80; + + location / { + try_files $uri $uri/ /index.html =404; + } + + location /assets { + try_files $uri $uri/ =404; + } +} \ No newline at end of file