copy nginx conf
added default.conf
This commit is contained in:
parent
1665f06e1f
commit
6a913f35c6
@ -12,6 +12,8 @@ RUN npm ci && npm run build
|
|||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
COPY --from=build-image /app/dist/app-fe /usr/share/nginx/html
|
COPY --from=build-image /app/dist/app-fe /usr/share/nginx/html
|
||||||
|
COPY ./nginx/conf.d /etc/nginx/
|
||||||
|
RUN nginx -s reload
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
10
frontend/nginx/conf.d/default.conf
Normal file
10
frontend/nginx/conf.d/default.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user