forked from jcgruenhage/docker-caddy
Switched to my base image, updated to v0.10.3
This commit is contained in:
parent
2edd3f7c6c
commit
4c3bb68055
3 changed files with 34 additions and 35 deletions
30
Dockerfile
30
Dockerfile
|
@ -1,18 +1,18 @@
|
|||
FROM alpine:edge
|
||||
MAINTAINER Jan Christian Grünhage <mail@janchristiangruenhage.de>
|
||||
FROM jcgruenhage/baseimage-alpine
|
||||
MAINTAINER Jan Christian Grünhage <jan.christian@gruenhage.xyz>
|
||||
|
||||
ENV GOPATH /gopath
|
||||
ENV CADDY_REPO_OWNER mholt
|
||||
ENV CADDY_REPO_NAME caddy
|
||||
ENV CADDY_BRANCH tags/v0.10.2
|
||||
ENV CADDYPATH /caddy
|
||||
ENV UID 192
|
||||
ENV GID 192
|
||||
ENV GOPATH=/gopath \
|
||||
CADDY_REPO_OWNER=mholt \
|
||||
CADDY_REPO_NAME=caddy \
|
||||
CADDY_BRANCH=tags/v0.10.3 \
|
||||
CADDYPATH=/caddy \
|
||||
UID=192 \
|
||||
GID=192
|
||||
|
||||
COPY plugins.txt /plugins
|
||||
ADD plugins.txt /plugins
|
||||
|
||||
RUN apk add --update musl \
|
||||
&& apk add --no-cache build-base su-exec libcap tini go git \
|
||||
RUN apk upgrade --update \
|
||||
&& apk add build-base su-exec libcap go git \
|
||||
&& mkdir -p $GOPATH/src/github.com/$CADDY_REPO_OWNER \
|
||||
&& cd $GOPATH/src/github.com/$CADDY_REPO_OWNER \
|
||||
&& git clone https://github.com/$CADDY_REPO_OWNER/$CADDY_REPO_NAME \
|
||||
|
@ -33,9 +33,7 @@ RUN apk add --update musl \
|
|||
&& mkdir $CADDYPATH \
|
||||
&& rm -rf $GOPATH /var/cache/apk/* /plugins
|
||||
|
||||
COPY root /
|
||||
ADD root /
|
||||
|
||||
EXPOSE 2015 80 443
|
||||
VOLUME ["$CADDYPATH" ]
|
||||
WORKDIR "$CADDYPATH"
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/run.sh"]
|
||||
VOLUME ["$CADDYPATH"]
|
||||
|
|
1
root/etc/s6.d/caddy/finish
Executable file
1
root/etc/s6.d/caddy/finish
Executable file
|
@ -0,0 +1 @@
|
|||
#!/bin/sh
|
Loading…
Reference in a new issue