master
Spagnolo Gasper 2022-12-24 17:57:59 +01:00
parent bb08e8f1f8
commit 840a9bba86
2 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,7 @@ RUN hugo
FROM nginx:alpine FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /src/public /usr/share/nginx/html COPY --from=build /src/public /usr/share/nginx/html
EXPOSE 80 EXPOSE 80

14
nginx.conf Normal file
View File

@ -0,0 +1,14 @@
events{}
http {
include /etc/nginx/mime.types;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}