Skip to content

Commit

Permalink
Install libcap in builder image to make it easier for users buildin…
Browse files Browse the repository at this point in the history
…g their own images to do it securely

Mitigates caddyserver#104
  • Loading branch information
abjugard committed Jan 27, 2023
1 parent b650917 commit 65f4102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions 2.6/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM golang:1.19-alpine

RUN apk add --no-cache \
git \
ca-certificates
ca-certificates \
git \
libcap

ENV XCADDY_VERSION v0.3.1
# Configures xcaddy to build with this version of Caddy
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.builder.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{{ .base | strings.TrimSpace }}

RUN apk add --no-cache \
git \
ca-certificates
ca-certificates \
git \
libcap

ENV XCADDY_VERSION v{{ .xcaddy_config.version }}
# Configures xcaddy to build with this version of Caddy
Expand Down

0 comments on commit 65f4102

Please sign in to comment.