removed workdir from dockerfile

This commit is contained in:
Jeremy Karst 2025-04-04 20:57:55 -04:00
parent 0f78547a47
commit d229150068

View file

@ -4,9 +4,6 @@ FROM golang:1.21-alpine AS builder
# Install Hugo and Git
RUN apk add --no-cache hugo git
# Set working directory
WORKDIR /app
# Copy the repository contents
COPY . .
@ -20,7 +17,7 @@ RUN hugo --minify
FROM nginx:alpine
# Copy the built site from builder
COPY --from=builder /app/public /usr/share/nginx/html
COPY --from=builder /public /usr/share/nginx/html
# Copy custom nginx config if needed
# COPY nginx.conf /etc/nginx/conf.d/default.conf