dockerfiles/privatebin/Dockerfile

37 lines
1.0 KiB
Docker
Raw Normal View History

2016-06-03 18:59:45 +02:00
FROM alpine:edge
2016-04-11 15:59:32 +02:00
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
ENV GID=991 UID=991
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& BUILD_DEPS="tar openssl ca-certificates" \
2016-04-11 15:59:32 +02:00
&& apk -U add \
$BUILD_DEPS \
2016-04-11 15:59:32 +02:00
nginx \
supervisor \
tini@commuedge \
2016-04-11 15:59:32 +02:00
php7-fpm@testing \
php7-gd@testing \
php7-mcrypt@testing \
php7-json@testing \
php7-zlib@testing \
&& 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 supervisord.conf /usr/local/etc/supervisord.conf
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
VOLUME /zerobin/data
2016-04-11 15:59:32 +02:00
EXPOSE 80
2016-05-09 18:46:01 +02:00
CMD ["/sbin/tini","--","run.sh"]