Skip to content

Commit

Permalink
fix caddy non-root
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 20, 2024
1 parent 2ab1f58 commit e4e5559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ FROM wemakeservices/caddy-gen:1.0.0 AS caddy-gen
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
ARG CADDY_UID=0
ARG CADDY_GID=0
RUN chown -R $CADDY_UID:$CADDY_GID /code/docker-gen/templates/Caddyfile.tmpl /etc/caddy
RUN chown -R $CADDY_UID:$CADDY_GID /code/docker-gen/templates/Caddyfile.tmpl /etc/caddy /config/caddy
RUN chmod a+x /usr/bin/forego
USER $CADDY_UID:$CADDY_GID

0 comments on commit e4e5559

Please sign in to comment.