mirror of
https://github.com/tiennm99/miti99.git
synced 2026-09-15 22:22:00 +00:00
19 lines
303 B
Docker
19 lines
303 B
Docker
FROM golang:1.22 AS builder
|
|
|
|
RUN apt-get update && apt-get install -y git
|
|
RUN go install -tags extended github.com/gohugoio/hugo@0.124.0
|
|
|
|
WORKDIR /site
|
|
|
|
COPY . .
|
|
|
|
RUN hugo --minify
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /site/public /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|