Custom Dockerfile for the awesome GBox Proxy
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dominic Grimm 2388d33beb
2 months ago
.dockerignore Init 2 months ago
Dockerfile Update 2 months ago
Makefile Update 2 months ago Update 2 months ago

Custom Dockerfile for the awesome GBox Proxy

docker pull

FROM as puller
WORKDIR /usr/src/gbox
RUN git clone --depth 1 --branch ${GBOX_VERSION} .

FROM as builder
WORKDIR /usr/src/gbox
COPY --from=puller /usr/src/gbox .
RUN go build ./cmd/main.go

LABEL maintainer="Dominic Grimm <>" \
  org.opencontainers.image.description="Custom build of the GBox Proxy" \
  org.opencontainers.image.licenses="Apache License 2.0" \
  org.opencontainers.image.source="" \
COPY --from=builder /usr/src/gbox/Caddyfile.dist /etc/caddy/Caddyfile
COPY --from=builder /usr/src/gbox/main /usr/bin/caddy