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