diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 4d9e335..4bc6d5d 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ FROM nginx:alpine-slim EXPOSE 80 -COPY nginx.conf /etc/nginx/nginx.conf +COPY nginx.conf /etc/nginx/sites-enabled/serve.conf COPY dist /usr/share/nginx/html \ No newline at end of file diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 32609d2..85e6124 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -1,9 +1,7 @@ -http { - server { - listen 80; - root /usr/share/nginx/html; - location / { - try_files $uri $uri/ /index.html; - } +server { + listen 80; + root /usr/share/nginx/html; + location / { + try_files $uri $uri/ /index.html; } } \ No newline at end of file