14 lines
274 B
Docker
14 lines
274 B
Docker
|
FROM alpine:latest as build
|
||
|
|
||
|
WORKDIR /build
|
||
|
|
||
|
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
|
||
|
|
||
|
COPY ./ ./
|
||
|
|
||
|
RUN hugo
|
||
|
|
||
|
FROM nginx:latest
|
||
|
|
||
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||
|
COPY --from=build /build/public /usr/share/nginx/html
|