Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions BUILDER.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ docker run --rm -v $(pwd):/install -e PLUGINS=git,filebrowser abiosoft/caddy:bui
### Environment Variables

- `PLUGINS` - comma separated Caddy plugins. e.g. `-e PLUGINS=git,linode`
- `VERSION` - Caddy version or repository branch. Default `1.0.3`
- `VERSION` - Caddy version or repository branch. Default `2.0.0`
- `ENABLE_TELEMETRY` - Enable telemetry stats. Options `true`|`false`. Default `true`
- `GOOS`, `GOARCH` and `GOARM` are all supported. Default `GOOS=linux`, `GOARCH=amd64`
- `GOOS`, `GOARCH` and `GOARM` are all supported, but buildkit is the new way
to specify architecture
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#
# Builder
#
FROM abiosoft/caddy:builder as builder
FROM paullj1/caddy:builder as builder

ARG version="1.0.3"
ARG version="2.0.0"
ARG plugins="git,cors,realip,expires,cache,cloudflare"
ARG enable_telemetry="true"

Expand All @@ -15,10 +15,10 @@ RUN VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=${enable_telemetry} /
#
# Final stage
#
FROM alpine:3.10
FROM alpine:3.11
LABEL maintainer "Abiola Ibrahim <abiola89@gmail.com>"

ARG version="1.0.3"
ARG version="2.0.0"
LABEL caddy_version="$version"

# Let's Encrypt Agreement
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile-no-stats
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
FROM abiosoft/caddy:builder as builder

ARG version="1.0.3"
ARG version="2.0.0"
ARG plugins="git,cors,realip,expires,cache,cloudflare"

# process wrapper
Expand All @@ -14,10 +14,10 @@ RUN VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=false /bin/sh /usr/bi
#
# Final stage
#
FROM alpine:3.10
FROM alpine:3.11
LABEL maintainer "Abiola Ibrahim <abiola89@gmail.com>"

ARG version="1.0.3"
ARG version="2.0.0"
LABEL caddy_version="$version"

# Let's Encrypt Agreement
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A [Docker](https://docker.com) image for [Caddy](https://caddyserver.com). This
Plugins can be configured via the [`plugins` build arg](#custom-plugins).

[![](https://images.microbadger.com/badges/image/abiosoft/caddy.svg)](https://microbadger.com/images/abiosoft/caddy "Get your own image badge on microbadger.com")
[![](https://img.shields.io/badge/version-1.0.3-blue.svg)](https://github.com/caddyserver/caddy/tree/v1.0.3)
[![](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/caddyserver/caddy/tree/v2.0.0)

Check [abiosoft/caddy:builder](https://github.com/abiosoft/caddy-docker/blob/master/BUILDER.md) for generating cross-platform Caddy binaries.

Expand Down
4 changes: 2 additions & 2 deletions builder/builder.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

VERSION=${VERSION:-"1.0.3"}
VERSION=${VERSION:-"2.0.0"}
TELEMETRY=${ENABLE_TELEMETRY:-"true"}
IMPORT="github.com/caddyserver/caddy"

Expand Down Expand Up @@ -131,7 +131,7 @@ end_stage

# plugin helper
stage "installing plugin helper"
GOOS=linux GOARCH=amd64 go get -v github.com/abiosoft/caddyplug/caddyplug
GOOS=linux go get -v github.com/abiosoft/caddyplug/caddyplug
end_stage

# check for modules support
Expand Down
24 changes: 24 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

group "default" {
targets = ["caddy", "builder"]
}

target "caddy" {
context = "./"
dockerfile = "Dockerfile"
output = ["type=registry"]
driver = "docker-container"
tags = ["docker.io/paullj1/caddy:latest",
"docker.io/paullj1/caddy:2.0.0" ]
platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7"]
}

target "builder" {
context = "./builder/"
dockerfile = "Dockerfile"
output = ["type=registry"]
driver = "docker-container"
tags = ["docker.io/paullj1/caddy:builder"]
platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7"]
}

6 changes: 3 additions & 3 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
FROM abiosoft/caddy:builder as builder

ARG version="1.0.3"
ARG version="2.0.0"
ARG plugins="git,cors,realip,expires,cache,cloudflare"
ARG enable_telemetry="true"

Expand All @@ -15,10 +15,10 @@ RUN VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=${enable_telemetry} /
#
# Final Stage
#
FROM alpine:3.10
FROM alpine:3.11
LABEL maintainer "Abiola Ibrahim <abiola89@gmail.com>"

ARG version="1.0.3"
ARG version="2.0.0"
LABEL caddy_version="$version"

# PHP www-user UID and GID
Expand Down
6 changes: 3 additions & 3 deletions php/Dockerfile-no-stats
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
FROM abiosoft/caddy:builder as builder

ARG version="1.0.3"
ARG version="2.0.0"
ARG plugins="git,cors,realip,expires,cache,cloudflare"

# Process Wrapper
Expand All @@ -14,10 +14,10 @@ RUN VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=false /bin/sh /usr/bi
#
# Final Stage
#
FROM alpine:3.10
FROM alpine:3.11
LABEL maintainer "Abiola Ibrahim <abiola89@gmail.com>"

ARG version="1.0.3"
ARG version="2.0.0"
LABEL caddy_version="$version"

# PHP www-user UID and GID
Expand Down