Skip to content

Commit 3ca2da3

Browse files
Updated nginx default.conf file
1 parent 4f6eb30 commit 3ca2da3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ RUN npm run build
99
# Stage 2: Setup the Nginx Server to serve the NextJS Application
1010
FROM nginx:stable-alpine3.17 as production
1111
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
1213
EXPOSE 80
1314
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)