spanskiblog/Dockerfile

16 lines
194 B
Docker
Raw Normal View History

2022-12-24 17:51:37 +01:00
FROM alpine AS build
RUN apk add hugo
WORKDIR /src
COPY . .
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