Simplify Dockerfile and add dockerignore file.
This commit is contained in:
parent
6be20960ed
commit
7743c67331
4
portfolio/.dockerignore
Normal file
4
portfolio/.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
# Even though extra files aren’t copied into the image, they are sent to Docker during the build.
|
||||
# For a Hakyll site, that’s wasteful.
|
||||
*
|
||||
!_site/**
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user