From a7558751f2a275de4851bddabde9ae3aee5161af Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Fri, 3 Jul 2020 00:38:13 +0800 Subject: [PATCH] Cleanup --- .drone.yml | 18 ------------------ 2.1/alpine/Dockerfile | 37 ------------------------------------- 2 files changed, 55 deletions(-) delete mode 100644 .drone.yml delete mode 100644 2.1/alpine/Dockerfile diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index c0d4c29..0000000 --- a/.drone.yml +++ /dev/null @@ -1,18 +0,0 @@ -kind: pipeline -name: default -type: kubernetes - -steps: -- name: docker - image: plugins/docker - settings: - registry: registry.makerforce.io - repo: registry.makerforce.io/pwd/caddy - tags: - - latest - context: scratch - dockerfile: scratch/Dockerfile - username: - from_secret: docker_username - password: - from_secret: docker_password diff --git a/2.1/alpine/Dockerfile b/2.1/alpine/Dockerfile deleted file mode 100644 index fe8086c..0000000 --- a/2.1/alpine/Dockerfile +++ /dev/null @@ -1,37 +0,0 @@ -FROM caddy:2.1.1-alpine as build - -RUN apk add --no-cache upx ca-certificates \ - && upx --ultra-brute /usr/bin/caddy \ - && caddy version - -FROM scratch - -COPY --from=build /etc/caddy/Caddyfile /etc/caddy/Caddyfile -COPY --from=build /usr/share/caddy/index.html /usr/share/caddy/index.html -COPY --from=build /usr/bin/caddy /usr/bin/caddy -COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt -COPY --from=build /etc/nsswitch.conf /etc/nsswitch.conf - -ENV XDG_CONFIG_HOME=/config -ENV XDG_DATA_HOME=/data -ENV HOME=/ - -VOLUME /config -VOLUME /data - -LABEL org.opencontainers.image.version=v2.1.1 -LABEL org.opencontainers.image.title="Caddy (productionwentdown build)" -LABEL org.opencontainers.image.description="a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go" -LABEL org.opencontainers.image.url=https://productionwentdown.makerforce.io -LABEL org.opencontainers.image.documentation=https://caddyserver.com/docs -LABEL org.opencontainers.image.vendor="productionwentdown" -LABEL org.opencontainers.image.licenses=Apache-2.0 -LABEL org.opencontainers.image.source="https://github.com/productionwentdown/caddy" - -EXPOSE 80 -EXPOSE 443 -EXPOSE 2019 - -WORKDIR /srv - -CMD ["/usr/bin/caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]