Skip to content

Commit 6db9262

Browse files
committed
Switch from floryn90/hugo to ghcr.io/gohugoio/hugo image
The site build using docker-compose fails since floryn90/hugo v0.134.3: ``` Error: error building site: failed to acquire a build lock: open /src/.hugo_build.lock: permission denied ``` Cause: The Alpine image has switched from root user to hugo user: Florin-Lungu/docker-hugo@b261630 Fix: Switch to offical ghcr.io/gohugoio/hugo image that doesn't have the problem.
1 parent 350c34e commit 6db9262

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM floryn90/hugo:ext-alpine
1+
FROM ghcr.io/gohugoio/hugo
2+
3+
COPY . /project
4+
5+
RUN npm i
6+
7+
RUN hugo --minify
28

3-
RUN apk add git && \
4-
git config --global --add safe.directory /src

0 commit comments

Comments
 (0)