mirror of
https://github.com/casjaysdevdocker/caddy
synced 2025-01-18 12:34:23 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
3d40942179
commit
c0509f6375
40
Dockerfile
40
Dockerfile
@ -1,29 +1,4 @@
|
|||||||
FROM golang:1.19-alpine AS caddy
|
FROM casjaysdevdocker/alpine:latest AS build
|
||||||
ENV XDG_CONFIG_HOME /config
|
|
||||||
ENV XDG_DATA_HOME /data
|
|
||||||
|
|
||||||
RUN set -ex \
|
|
||||||
export XCADDY_SETCAP=1; \
|
|
||||||
export version=$(curl -q -LSsf "https://api.github.com/repos/caddyserver/caddy/releases/latest" | jq -r .tag_name | grep '^' || exit 5); \
|
|
||||||
echo ">>>>>>>>>>>>>>> ${version} ###############"
|
|
||||||
|
|
||||||
RUN apk -U upgrade && \
|
|
||||||
apk add jq --no-cache && \
|
|
||||||
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest || exit 10; \
|
|
||||||
xcaddy build ${version} \
|
|
||||||
--output /caddy \
|
|
||||||
--with github.com/caddy-dns/route53 \
|
|
||||||
--with github.com/caddy-dns/cloudflare \
|
|
||||||
--with github.com/caddy-dns/alidns \
|
|
||||||
--with github.com/caddy-dns/dnspod \
|
|
||||||
--with github.com/caddy-dns/rfc2136 \
|
|
||||||
--with github.com/hairyhenderson/caddy-teapot-module \
|
|
||||||
--with github.com/kirsch33/realip \
|
|
||||||
--with github.com/porech/caddy-maxmind-geolocation \
|
|
||||||
--with github.com/caddyserver/transform-encoder \
|
|
||||||
--with github.com/caddyserver/replace-response
|
|
||||||
|
|
||||||
FROM casjaysdevdocker/php:latest as build
|
|
||||||
|
|
||||||
ARG ALPINE_VERSION="v3.16"
|
ARG ALPINE_VERSION="v3.16"
|
||||||
|
|
||||||
@ -33,7 +8,7 @@ ARG DEFAULT_DATA_DIR="/usr/local/share/template-files/data" \
|
|||||||
|
|
||||||
ARG PACK_LIST="bash"
|
ARG PACK_LIST="bash"
|
||||||
|
|
||||||
ENV LANG=en_US.utf8 \
|
ENV LANG=en_US.UTF-8 \
|
||||||
ENV=ENV=~/.bashrc \
|
ENV=ENV=~/.bashrc \
|
||||||
TZ="America/New_York" \
|
TZ="America/New_York" \
|
||||||
SHELL="/bin/sh" \
|
SHELL="/bin/sh" \
|
||||||
@ -42,7 +17,6 @@ ENV LANG=en_US.utf8 \
|
|||||||
HOSTNAME="casjaysdev-caddy"
|
HOSTNAME="casjaysdev-caddy"
|
||||||
|
|
||||||
COPY ./rootfs/. /
|
COPY ./rootfs/. /
|
||||||
COPY --from=caddy /caddy /usr/bin/caddy
|
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
rm -Rf "/etc/apk/repositories"; \
|
rm -Rf "/etc/apk/repositories"; \
|
||||||
@ -69,14 +43,14 @@ FROM scratch
|
|||||||
|
|
||||||
ARG \
|
ARG \
|
||||||
SERVICE_PORT="80" \
|
SERVICE_PORT="80" \
|
||||||
EXPOSE_PORTS="80 2019" \
|
EXPOSE_PORTS="80" \
|
||||||
PHP_SERVER="caddy" \
|
PHP_SERVER="caddy" \
|
||||||
NODE_VERSION="system" \
|
NODE_VERSION="system" \
|
||||||
NODE_MANAGER="system" \
|
NODE_MANAGER="system" \
|
||||||
BUILD_VERSION="latest" \
|
BUILD_VERSION="latest" \
|
||||||
LICENSE="MIT" \
|
LICENSE="MIT" \
|
||||||
IMAGE_NAME="caddy" \
|
IMAGE_NAME="caddy" \
|
||||||
BUILD_DATE="Thu Oct 20 03:58:44 PM EDT 2022" \
|
BUILD_DATE="Sun Nov 13 12:15:57 PM EST 2022" \
|
||||||
TIMEZONE="America/New_York"
|
TIMEZONE="America/New_York"
|
||||||
|
|
||||||
LABEL maintainer="CasjaysDev <docker-admin@casjaysdev.com>" \
|
LABEL maintainer="CasjaysDev <docker-admin@casjaysdev.com>" \
|
||||||
@ -94,9 +68,10 @@ LABEL maintainer="CasjaysDev <docker-admin@casjaysdev.com>" \
|
|||||||
org.opencontainers.image.vcs-url="https://github.com/casjaysdevdocker/${IMAGE_NAME}" \
|
org.opencontainers.image.vcs-url="https://github.com/casjaysdevdocker/${IMAGE_NAME}" \
|
||||||
org.opencontainers.image.url.source="https://github.com/casjaysdevdocker/${IMAGE_NAME}" \
|
org.opencontainers.image.url.source="https://github.com/casjaysdevdocker/${IMAGE_NAME}" \
|
||||||
org.opencontainers.image.documentation="https://hub.docker.com/r/casjaysdevdocker/${IMAGE_NAME}" \
|
org.opencontainers.image.documentation="https://hub.docker.com/r/casjaysdevdocker/${IMAGE_NAME}" \
|
||||||
org.opencontainers.image.description="Containerized version of ${IMAGE_NAME}"
|
org.opencontainers.image.description="Containerized version of ${IMAGE_NAME}" \
|
||||||
|
com.github.containers.toolbox="false"
|
||||||
|
|
||||||
ENV LANG=en_US.utf8 \
|
ENV LANG=en_US.UTF-8 \
|
||||||
ENV=~/.bashrc \
|
ENV=~/.bashrc \
|
||||||
SHELL="/bin/bash" \
|
SHELL="/bin/bash" \
|
||||||
PORT="${SERVICE_PORT}" \
|
PORT="${SERVICE_PORT}" \
|
||||||
@ -119,3 +94,4 @@ EXPOSE $EXPOSE_PORTS
|
|||||||
#CMD [ "" ]
|
#CMD [ "" ]
|
||||||
ENTRYPOINT [ "tini", "-p", "SIGTERM", "--", "/usr/local/bin/entrypoint.sh" ]
|
ENTRYPOINT [ "tini", "-p", "SIGTERM", "--", "/usr/local/bin/entrypoint.sh" ]
|
||||||
HEALTHCHECK --start-period=1m --interval=2m --timeout=3s CMD [ "/usr/local/bin/entrypoint.sh", "healthcheck" ]
|
HEALTHCHECK --start-period=1m --interval=2m --timeout=3s CMD [ "/usr/local/bin/entrypoint.sh", "healthcheck" ]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user