You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM wemakeservices/caddy-gen:latest
ARG CADDY_UID=1000
ARG CADDY_GID=1000
RUN chown -R $CADDY_UID:$CADDY_GID /etc/caddy /config/caddy /code/docker-gen/templates/Caddyfile.tmpl
RUN chmod a+x /usr/bin/forego
USER $CADDY_UID:$CADDY_GID
which allows building using e.g. --arg CADDY_GID=$(getent group docker | cut -d: -f3) --arg CADDY_UID=$(id -u)
The text was updated successfully, but these errors were encountered:
potentially worth documenting how to run as non-root users (related: caddyserver/caddy-docker#104)?
I had to do:
which allows building using e.g.
--arg CADDY_GID=$(getent group docker | cut -d: -f3) --arg CADDY_UID=$(id -u)
The text was updated successfully, but these errors were encountered: