namesny-com/Dockerfile

14 lines
278 B
Docker
Raw Normal View History

2023-11-22 21:00:23 +00:00
FROM golang:1.21 as build
2023-02-13 19:05:21 +00:00
WORKDIR /app
RUN go install -tags extended github.com/gohugoio/hugo@latest
COPY . /app
RUN hugo mod get -u && \
hugo
FROM nginx:stable-alpine
2024-01-05 19:29:25 +00:00
COPY --from=build /app/public /usr/share/nginx/html/
COPY ./nginx.conf /etc/nginx/conf.d/default.conf