dockerfiles/privatebin/Dockerfile

31 lines
912 B
Docker
Raw Normal View History

FROM wonderfall/nginx-php
2016-04-11 15:59:32 +02:00
2017-10-17 20:08:40 +02:00
ARG PRIVATEBIN_VER=1.1.1
ENV GID=991 UID=991 \
UPLOAD_MAX_SIZE=10M \
MEMORY_LIMIT=128M
2016-04-11 15:59:32 +02:00
2017-04-25 14:10:27 +02:00
RUN echo " https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
2017-01-16 22:13:29 +01:00
&& BUILD_DEPS="tar libressl ca-certificates" \
&& apk -U upgrade && apk add $BUILD_DEPS \
&& mkdir privatebin && cd privatebin \
&& wget -qO- https://github.com/PrivateBin/PrivateBin/archive/${PRIVATEBIN_VER}.tar.gz | tar xz --strip 1 \
2016-04-11 15:59:32 +02:00
&& mv cfg/conf.ini.sample cfg/conf.ini \
&& apk del $BUILD_DEPS \
2016-04-11 15:59:32 +02:00
&& rm -f /var/cache/apk/*
COPY rootfs /
2016-04-11 15:59:32 +02:00
2016-09-24 11:48:17 +02:00
RUN chmod +x /usr/local/bin/run.sh /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
2016-04-11 15:59:32 +02:00
2017-08-25 19:48:28 +02:00
VOLUME /privatebin/data /php/session
2016-09-16 17:08:06 +02:00
EXPOSE 8888
2016-04-11 15:59:32 +02:00
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>" \
description="A minimalist, open source online pastebin where the server has zero knowledge of pasted data" \
2017-10-17 20:08:40 +02:00
version="PrivateBin 1.1.1"
2017-01-19 02:31:59 +01:00
2016-09-16 17:08:06 +02:00
CMD ["run.sh"]