-
sparklyballs authoredsparklyballs authored
Dockerfile 1.21 KiB
FROM lsiobase/alpine
MAINTAINER Gonzalo Peci <davyjones@linuxserver.io>, sparklyballs
# environment variables
ENV PYTHON_EGG_CACHE="/config/plugins/.python-eggs"
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# install runtime packages
RUN \
apk add --no-cache \
p7zip \
python \
unrar \
unzip && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/main \
libressl2.4-libssl && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
deluge && \
# install build packages
apk add --no-cache --virtual=build-dependencies \
g++ \
gcc \
libffi-dev \
py-pip \
python-dev && \
apk add --no-cache --virtual=build-dependencies2 \
--repository http://nl.alpinelinux.org/alpine/edge/main \
libressl-dev && \
# install pip packages
pip install --no-cache-dir -U \
crypto \
mako \
markupsafe \
pyopenssl \
service_identity \
six \
twisted \
zope.interface && \
# cleanup
apk del --purge \
build-dependencies \
build-dependencies2 && \
rm -rf \
/root/.cache
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8112 58846 58946 58946/udp
VOLUME /config /downloads