adriano.fyi/Dockerfile

19 lines
549 B
Text
Raw Normal View History

FROM hugomods/hugo:exts
2023-01-07 16:52:53 +00:00
RUN apk update && apk add nginx
2023-01-07 16:52:53 +00:00
# Create a non-root user to own the files and run our server
RUN adduser -D static
RUN chown -R static:static /home/static && mkdir -p /var/lib/nginx/tmp/client_body && chown -R static:static /var/lib/nginx
2023-01-07 16:52:53 +00:00
# Copy the static website
# Use the .dockerignore file to control what ends up inside the image!
COPY . /home/static
WORKDIR /home/static
2023-10-05 23:13:15 +00:00
RUN hugo -d public -b https://adriano.fyi
2023-01-07 16:52:53 +00:00
USER static
2025-05-13 15:42:00 +00:00
EXPOSE 3000
ENTRYPOINT ["nginx", "-e", "/dev/stderr", "-c", "/home/static/nginx.conf" ]