Updated nginx default.conf file
This commit is contained in:
parent
4f6eb30146
commit
3ca2da3e05
@ -9,5 +9,6 @@ RUN npm run build
|
|||||||
# Stage 2: Setup the Nginx Server to serve the NextJS Application
|
# Stage 2: Setup the Nginx Server to serve the NextJS Application
|
||||||
FROM nginx:stable-alpine3.17 as production
|
FROM nginx:stable-alpine3.17 as production
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
RUN echo 'server { listen 80; server_name _; root /usr/share/nginx/html; location / { try_files $uri /index.html; } }' > /etc/nginx/conf.d/default.conf
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Reference in New Issue
Block a user