diff --git a/Dockerfile b/Dockerfile index 6dfb5196caae490e28d83ce599de770378f670c4..5a4daa10ca68bab130ac7150a6cc749a1b66aa41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,6 @@ RUN npm run build # Step 2: Setup the server with Nginx FROM nginx:stable-alpine as production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/nginx.conf +COPY web/nginx.conf /etc/nginx/nginx.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/web/nginx.conf b/web/nginx.conf new file mode 100644 index 0000000000000000000000000000000000000000..60d2005bb62b27aa09760811c140fa26940d21c1 --- /dev/null +++ b/web/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file