[add] initial commit

This commit is contained in:
2020-04-05 19:08:21 -04:00
commit b14fc1f0c1
11 changed files with 652 additions and 0 deletions

28
certbot/Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM certbot/certbot:v1.3.0
ARG USER_UUID=12000
ARG USER_GUID=12000
ARG GROUP_NAME=certbot
ARG USER_NAME=certbot
# http://linuxcommand.org/lc3_man_pages/seth.html
RUN set -eux; \
addgroup -g $USER_GUID $GROUP_NAME; \
adduser -u $USER_UUID -G $GROUP_NAME -s /sbin/nologin -D $USER_NAME;
# create temp dir for service
RUN mkdir -p /service/temp \
&& chown -R $USER_NAME:$GROUP_NAME /service/temp
# create and set permission for proxy mounts
RUN mkdir -p /service/html \
&& chown -R $USER_NAME:$GROUP_NAME /service/html \
&& mkdir -p /service/ssl \
&& chown -R $USER_NAME:$GROUP_NAME /service/ssl
COPY ./files/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
USER $USER_NAME
ENTRYPOINT [ "/entrypoint.sh" ]