set user in Dockerfile

- Getting a permissions error during the build.
This commit is contained in:
Drew Bowering 2025-05-09 14:51:52 -06:00
parent ef6b699072
commit 679be95feb
Signed by: drew
GPG Key ID: DC9462335BDDAC6B

View File

@ -4,6 +4,7 @@ ARG CADDY_VERSION="2.10.0"
# Stage 1: Build
FROM ghcr.io/gohugoio/hugo:${HUGO_VERSION} AS builder
USER hugo:hugo
WORKDIR /project
COPY . .
RUN hugo build