dockerfiles/privatebin/Dockerfile

37 lines
929 B
Docker
Raw Normal View History

2017-01-16 22:13:29 +01:00
FROM alpine:edge
2016-04-11 15:59:32 +02:00
ENV GID=991 UID=991
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
2017-01-16 22:13:29 +01:00
&& BUILD_DEPS="tar libressl ca-certificates" \
2016-04-11 15:59:32 +02:00
&& apk -U add \
$BUILD_DEPS \
2016-04-11 15:59:32 +02:00
nginx \
2016-09-16 17:08:06 +02:00
s6 \
su-exec \
2016-08-27 21:06:23 +02:00
php7-fpm@commuedge \
php7-gd@commuedge \
php7-mcrypt@commuedge \
php7-json@commuedge \
php7-zlib@commuedge \
2016-04-11 15:59:32 +02:00
&& mkdir zerobin && cd zerobin \
2016-08-06 12:10:15 +02:00
&& wget -qO- https://github.com/PrivateBin/PrivateBin/archive/master.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 nginx.conf /etc/nginx/nginx.conf
COPY php-fpm.conf /etc/php7/php-fpm.conf
COPY run.sh /usr/local/bin/run.sh
2016-09-16 17:08:06 +02:00
COPY s6.d /etc/s6.d
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
VOLUME /zerobin/data
2016-09-16 17:08:06 +02:00
EXPOSE 8888
2016-04-11 15:59:32 +02:00
2017-01-19 02:31:59 +01:00
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>"
2016-09-16 17:08:06 +02:00
CMD ["run.sh"]