2020-06-11 18:45:28 +00:00
|
|
|
FROM lsiobase/alpine:3.12
|
2020-06-05 19:25:27 +00:00
|
|
|
|
2020-06-11 18:45:28 +00:00
|
|
|
ARG BUILDDATE
|
2020-06-05 19:25:27 +00:00
|
|
|
|
2020-06-11 18:45:28 +00:00
|
|
|
LABEL \
|
|
|
|
app.deemix.image.created="${BUILDDATE}" \
|
|
|
|
app.deemix.image.url="https://gitlab.com/Bockiii/deemix-docker" \
|
|
|
|
app.deemix.image.title="Docker image for Deemix" \
|
|
|
|
app.deemix.image.description="Docker image for Deemix and the pyweb frontend" \
|
|
|
|
maintainer="Bocki"
|
2020-06-05 19:25:27 +00:00
|
|
|
|
|
|
|
RUN \
|
2020-06-11 18:45:28 +00:00
|
|
|
echo "**** install build packages ****" && \
|
|
|
|
apk add --no-cache --virtual=build-dependencies \
|
2020-06-05 19:25:27 +00:00
|
|
|
gcc \
|
|
|
|
g++ \
|
|
|
|
libffi-dev \
|
|
|
|
python3-dev \
|
2020-06-11 18:45:28 +00:00
|
|
|
git \
|
2020-09-23 23:30:10 +00:00
|
|
|
curl \
|
2020-06-11 18:45:28 +00:00
|
|
|
make && \
|
|
|
|
echo "**** install packages ****" && \
|
|
|
|
apk add --no-cache \
|
|
|
|
py3-pip \
|
|
|
|
python3 && \
|
|
|
|
echo "**** setup directories ****" && \
|
|
|
|
mkdir /deem && \
|
|
|
|
chown abc:abc /deem && \
|
|
|
|
rm -R /config && \
|
|
|
|
ln -sf /deem/.config/deemix /config && \
|
|
|
|
ln -sf /downloads /deem/deemix\ Music && \
|
|
|
|
echo "**** clean up ****" && \
|
|
|
|
rm -rf \
|
|
|
|
/root/.cache \
|
|
|
|
/tmp/*
|
2020-06-05 19:25:27 +00:00
|
|
|
|
|
|
|
COPY root/ /
|
|
|
|
|
2020-06-11 18:45:28 +00:00
|
|
|
EXPOSE 6595
|
|
|
|
VOLUME /downloads /config
|