website/Dockerfile
Pagwin 92186c3a58
Beginning work on sticking website into container
saved all the relevent docs into a window, can't continue work now
because I need to rest before I go back to driving, need to setup a
conditional so I can do a docker build without having the comments
section enabled though maybe have the arg be the name nginx should hit
up for the comments instead of 0 v 1 for on v off
2023-09-11 16:25:16 -04:00

12 lines
287 B
Docker

FROM alpine:3.18 as build
# making my own image for hugo because there doesn't seem to be an official one in repo, lazy so we're going with alpine
RUN ["apk", "update"]
RUN ["apk", "add hugo"]
ADD . /root/
WORKDIR /root
ARG WITH_COMMENTS=0
RUN ["hugo", "--minify"]
FROM nginx:1.25
RUN