From 94d181cd3d908ec2f1d1e927fd37857f673f7447 Mon Sep 17 00:00:00 2001 From: Jeremy Karst Date: Fri, 4 Apr 2025 22:17:34 -0400 Subject: [PATCH] Maybe this finally works... --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a6d755..ce31d92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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