namesny-com/Dockerfile

14 lines
354 B
Docker

FROM golang:1.21 as build
WORKDIR /app
RUN go install -tags extended github.com/gohugoio/hugo@latest
COPY . /app
RUN hugo mod get -u && \
hugo
FROM nginx:stable-alpine
COPY --from=build /app/public /usr/share/nginx/html/
ADD https://github.com/LordMathis/resume/releases/latest/download/resume.pdf /usr/share/nginx/html/namesny_matus_resume.pdf