Maybe this finally works...

This commit is contained in:
Jeremy Karst 2025-04-04 22:17:34 -04:00
parent 0885320deb
commit 94d181cd3d

View file

@ -1,13 +1,14 @@
# Build stage
FROM golang:1.21-alpine AS builder
FROM golang:1.24-alpine AS builder
# Install Hugo, Git, and SSL certificates
RUN apk add --no-cache hugo git ca-certificates
WORKDIR /app
# Install Hugo and Git
RUN apk add --no-cache hugo git
# Copy the repository contents
COPY . .
# Build the site
RUN hugo --minify
@ -15,7 +16,7 @@ RUN hugo --minify
FROM nginx:alpine
# Copy the built site from builder
COPY --from=builder /public /usr/share/nginx/html
COPY --from=builder /app/public /usr/share/nginx/html
# Copy custom nginx config if needed
# COPY nginx.conf /etc/nginx/conf.d/default.conf