blog/Dockerfile

20 lines
308 B
Docker
Raw Normal View History

2024-01-19 12:47:18 +01:00
FROM alpine:latest AS build
RUN apk add --update hugo
WORKDIR /opt/HugoApp
COPY . .
2024-01-19 21:45:16 +01:00
# Add analytics
COPY layouts/partials/head.html themes/hugo-blog-awesome/layouts/partials/head.html
2024-01-19 12:47:18 +01:00
RUN hugo
FROM nginx:1.25-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/HugoApp/public .
EXPOSE 80/tcp