Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
630c80dc1b | |||
03c15f6884 | |||
ed7ec2a709 | |||
![]() |
7c70d05ec4 | ||
6ba1f99bbc | |||
![]() |
28b05d69b2 | ||
![]() |
f0586e3af4 | ||
![]() |
f222c7f241 | ||
![]() |
a701b7f717 | ||
![]() |
99bd881adf | ||
![]() |
1d936181e7 | ||
![]() |
33a63cf4aa | ||
![]() |
484b4d6f16 | ||
![]() |
0f5aa75b90 | ||
![]() |
af677e150f | ||
![]() |
7748886a37 | ||
![]() |
60f2183c81 | ||
![]() |
5d57259aef |
25
.drone.yml
25
.drone.yml
@ -3,7 +3,7 @@ type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: Publish to docker
|
||||
- name: Publish Base to docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
@ -11,9 +11,26 @@ steps:
|
||||
password:
|
||||
from_secret: docker_password
|
||||
auto_tag: true
|
||||
repo: hibas123.azurecr.io/caddy
|
||||
registry: hibas123.azurecr.io
|
||||
debug: true
|
||||
repo: docker.hibas123.de/caddy
|
||||
registry: docker.hibas123.de
|
||||
debug: false
|
||||
when:
|
||||
branch: [master]
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- name: Publish PHP to docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
auto_tag: true
|
||||
dockerfile: Dockerfile.php
|
||||
repo: docker.hibas123.de/caddy-php
|
||||
registry: docker.hibas123.de
|
||||
debug: false
|
||||
when:
|
||||
branch: [master]
|
||||
event:
|
||||
|
28
Dockerfile
28
Dockerfile
@ -1,23 +1,10 @@
|
||||
FROM caddy:builder AS builder
|
||||
|
||||
RUN caddy-builder \
|
||||
github.com/caddy-dns/cloudflare
|
||||
|
||||
FROM caddy:2.0.0
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
||||
FROM docker.io/alpine:3
|
||||
LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>"
|
||||
|
||||
# RUN apk add --no-cache \
|
||||
# ca-certificates \
|
||||
# git \
|
||||
# mailcap \
|
||||
# openssh-client \
|
||||
# tzdata \
|
||||
# bash \
|
||||
# curl
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
RUN curl -o /usr/bin/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&p=github.com%2FRussellLuo%2Fcaddy-ext%2Fratelimit&p=github.com%2Ftechknowlogick%2Fcertmagic-s3&idempotency=81742055656173"
|
||||
RUN chmod +x /usr/bin/caddy
|
||||
|
||||
#Validate install
|
||||
RUN caddy version
|
||||
@ -25,10 +12,11 @@ RUN caddy list-modules
|
||||
|
||||
EXPOSE 80 443 2019
|
||||
|
||||
VOLUME [ "/data", "/config" ]
|
||||
VOLUME [ "/config" ]
|
||||
|
||||
WORKDIR /srv
|
||||
|
||||
COPY Caddyfile /etc/Caddyfile
|
||||
COPY start.sh /start.sh
|
||||
RUN chmod +x /start.sh
|
||||
|
||||
CMD ["caddy", "run", "--config", "/etc/Caddyfile", "--adapter", "caddyfile"]
|
||||
CMD ["/bin/sh", "/start.sh"]
|
||||
|
8
Dockerfile.php
Normal file
8
Dockerfile.php
Normal file
@ -0,0 +1,8 @@
|
||||
FROM docker.hibas123.de/caddy
|
||||
|
||||
RUN apk add --no-cache openssl libxml2 php7 php7-fpm php7-opcache php7-curl php7-ctype php7-dom php7-gd php7-iconv \
|
||||
php7-json php7-xml php7-mbstring php7-openssl php7-posix php7-session php7-simplexml php7-xmlreader php7-xmlwriter \
|
||||
php7-zip php7-zlib php7-pdo_sqlite php7-pdo_mysql php7-pdo_pgsql php7-fileinfo php7-bz2 php7-intl php7-ldap \
|
||||
php7-ftp php7-imap php7-bcmath php7-gmp php7-exif
|
||||
|
||||
RUN cat /etc/php7/php-fpm.d/www.conf | sed 's/listen = 127.0.0.1:9000/listen = \/run\/php-fpm.sock/g' > /etc/php7/php-fpm.d/www.conf
|
Loading…
x
Reference in New Issue
Block a user