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 18, 2023
1 parent 845a7c0 commit 650fff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions 2.6/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM golang:1.19-alpine

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

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

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

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

0 comments on commit 650fff6

Please sign in to comment.