We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f6eb30 commit 3ca2da3Copy full SHA for 3ca2da3
Dockerfile
@@ -9,5 +9,6 @@ RUN npm run build
9
# Stage 2: Setup the Nginx Server to serve the NextJS Application
10
FROM nginx:stable-alpine3.17 as production
11
COPY --from=build /app/dist /usr/share/nginx/html
12
+RUN echo 'server { listen 80; server_name _; root /usr/share/nginx/html; location / { try_files $uri /index.html; } }' > /etc/nginx/conf.d/default.conf
13
EXPOSE 80
14
CMD ["nginx", "-g", "daemon off;"]
0 commit comments