dockerfiles/privatebin/Dockerfile

37 lines
881 B
Docker
Raw Normal View History

2017-04-25 14:10:27 +02:00
FROM alpine:3.5
2016-04-11 15:59:32 +02:00
ENV GID=991 UID=991
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" \
2017-02-26 03:07:30 +01:00
&& apk -U upgrade && apk add \
$BUILD_DEPS \
2016-04-11 15:59:32 +02:00
nginx \
2016-09-16 17:08:06 +02:00
s6 \
su-exec \
2017-04-25 14:10:27 +02:00
php7-fpm \
php7-gd \
php7-mcrypt \
php7-json \
php7-zlib \
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
2017-03-26 01:51:44 +01:00
COPY php-fpm.conf /etc/php7/php-fpm.conf
2016-04-11 15:59:32 +02:00
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"]