Initial Commit

This commit is contained in:
Jan Christian Grünhage 2017-07-12 03:57:57 +02:00
commit f83aed18d0
3 changed files with 30 additions and 0 deletions

24
Dockerfile Normal file
View file

@ -0,0 +1,24 @@
FROM jcgruenhage/baseimage-alpine
MAINTAINER Jan Christian Grünhage <jan.christian@gruenhage.xyz>
ENV UID=192 \
GID=192
RUN apk update \
&& apk add --upgrade \
git \
openssl \
curl \
sed \
grep \
bash \
su-exec \
&& git clone https://github.com/lukas2511/dehydrated /dehydrated
ADD root /
VOLUME /etc/dehydrated
VOLUME /var/www/dehydrated
VOLUME /certs

View file

@ -0,0 +1,3 @@
#!/bin/bash
chown -R ${UID}:${GID} /etc/dehydrated /certs /var/www/dehydrated
su-exec ${UID}:${GID} /dehydrated/dehydrated -c

3
root/etc/s6.d/dehydrated/run Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
s6-svc -O /etc/s6.d/dehydrated
/etc/periodic/weekly/dehydrated