copy nginx conf

added default.conf
This commit is contained in:
Marco Zeisler 2021-05-04 21:32:30 +02:00
parent 1665f06e1f
commit 6a913f35c6
2 changed files with 13 additions and 1 deletions

View File

@ -13,5 +13,7 @@ RUN npm ci && npm run build
FROM nginx:alpine
COPY --from=build-image /app/dist/app-fe /usr/share/nginx/html
COPY ./nginx/conf.d /etc/nginx/
RUN nginx -s reload
EXPOSE 80

View File

@ -0,0 +1,10 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
try_files $uri $uri/ /index.html;
}
}