1
0

Simplify Dockerfile and add dockerignore file.

This commit is contained in:
Kevin Matsubara 2025-12-27 16:13:56 +01:00
parent 6be20960ed
commit 7743c67331
2 changed files with 6 additions and 2 deletions

4
portfolio/.dockerignore Normal file
View File

@ -0,0 +1,4 @@
# Even though extra files arent copied into the image, they are sent to Docker during the build.
# For a Hakyll site, thats wasteful.
*
!_site/**

View File

@ -1,6 +1,6 @@
FROM nginx:1.29.1-alpine AS build
FROM nginx:1.29.1-alpine
COPY _site /usr/share/nginx/html
COPY _site /usr/share/nginx/html/
EXPOSE 80