1
0
Fork 0

feat: add shared dir for docker image and nginx config

This commit is contained in:
Vojtěch Mareš 2022-08-20 18:59:56 +02:00
parent ee1daec03c
commit 65d89cf59f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
2 changed files with 20 additions and 0 deletions

5
build/Containerfile Normal file
View file

@ -0,0 +1,5 @@
FROM nginx:mainline-alpine as nginx
COPY ./build/nginx/site.conf /etc/nginx/conf.d/default.conf
COPY ./out /var/www/html

15
build/nginx/site.conf Normal file
View file

@ -0,0 +1,15 @@
server {
listen 80;
location /security.txt {
return 308 /.well-known/security.txt;
}
location / {
root /var/www/html;
index index.html index.htm;
}
error_page 404 /404.html;
#error_page 500 502 503 504 /50x.html;
}