10 lines
352 B
Docker
10 lines
352 B
Docker
FROM ghcr.io/gohugoio/hugo:latest
|
|
|
|
USER root
|
|
# The image's "hugo" user is a system account (adduser -S) with shell /sbin/nologin,
|
|
# since it's only meant to run the hugo binary. VS Code's integrated terminal needs
|
|
# an interactive shell, so give it one.
|
|
RUN apk add --no-cache git-lfs && \
|
|
sed -i 's#/sbin/nologin#/bin/sh#' /etc/passwd
|
|
USER hugo:hugo
|