spanskiblog/Dockerfile

21 lines
249 B
Docker
Raw Permalink Normal View History

2022-12-24 17:51:37 +01:00
FROM alpine AS build
2022-12-24 20:24:08 +01:00
RUN apk add hugo git
2022-12-24 17:51:37 +01:00
WORKDIR /src
COPY . .
2022-12-24 20:24:08 +01:00
RUN git submodule init
RUN git submodule update
2022-12-24 17:51:37 +01:00
RUN hugo
FROM nginx:alpine
2022-12-24 17:57:59 +01:00
COPY nginx.conf /etc/nginx/nginx.conf
2022-12-24 17:51:37 +01:00
COPY --from=build /src/public /usr/share/nginx/html
EXPOSE 80