website/Containerfile

19 lines
247 B
Plaintext
Raw Normal View History

2022-12-01 17:30:08 +01:00
FROM alpine
ENV HUGO_ENVIRONMENT=production
2022-12-01 17:30:08 +01:00
WORKDIR /app
RUN apk add git hugo
RUN adduser \
--disabled-password \
--gecos "" \
--uid 1000 \
hugo
COPY . /app
RUN chown -R hugo:hugo /app
USER hugo
CMD hugo server --bind 0.0.0.0