mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
30 lines
809 B
Docker
30 lines
809 B
Docker
FROM hoellen/nginx-php
|
||
|
||
ARG PRIVATEBIN_VER=1.1.1
|
||
|
||
ENV GID=991 UID=991 \
|
||
UPLOAD_MAX_SIZE=10M \
|
||
MEMORY_LIMIT=128M
|
||
|
||
RUN 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 \
|
||
&& mv cfg/conf.sample.php cfg/conf.php \
|
||
&& apk del $BUILD_DEPS \
|
||
&& rm -f /var/cache/apk/*
|
||
|
||
COPY rootfs /
|
||
|
||
RUN chmod +x /usr/local/bin/run.sh /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
|
||
|
||
VOLUME /privatebin/data /php/session
|
||
|
||
EXPOSE 8888
|
||
|
||
LABEL maintainer="hoellen <info@hoellen.eu>" \
|
||
description="A minimalist, open source online pastebin where the server has zero knowledge of pasted data" \
|
||
version="PrivateBin 1.1.1"
|
||
|
||
CMD ["run.sh"]
|