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 141ca5e commit 47e0d8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 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
git \
ca-certificates \
libcap

ENV XCADDY_VERSION v0.3.1
# Configures xcaddy to build with this version of Caddy
Expand All @@ -29,4 +30,4 @@ RUN set -eux; \

COPY caddy-builder.sh /usr/bin/caddy-builder

WORKDIR /usr/bin
WORKDIR /usr/bin
7 changes: 4 additions & 3 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
git \
ca-certificates \
libcap

ENV XCADDY_VERSION v{{ .xcaddy_config.version }}
# Configures xcaddy to build with this version of Caddy
Expand All @@ -29,4 +30,4 @@ RUN set -eux; \

COPY caddy-builder.sh /usr/bin/caddy-builder

WORKDIR /usr/bin
WORKDIR /usr/bin

0 comments on commit 47e0d8e

Please sign in to comment.