Hello whiny.lol
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# Hugo
|
||||
FROM hugomods/hugo:base AS build
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN hugo
|
||||
|
||||
# Nginx (serve)
|
||||
FROM nginx:alpine
|
||||
COPY --from=build /src/public /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
HEALTHCHECK --interval=5m --timeout=5s \
|
||||
CMD curl -f http://localhost/ || exit 1
|
||||
Reference in New Issue
Block a user