Switched to my base image, updated to v0.10.3

This commit is contained in:
Jan Christian Grünhage 2017-06-28 14:22:17 +02:00
parent 2edd3f7c6c
commit 4c3bb68055
Signed by untrusted user who does not match committer: jcgruenhage
GPG key ID: 321A67D9EE8BC3E1
3 changed files with 34 additions and 35 deletions

View file

@ -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
View file

@ -0,0 +1 @@
#!/bin/sh