deemix-docker/Dockerfile

43 lines
984 B
Docker
Raw Normal View History

2021-03-02 23:01:41 +00:00
FROM lsiobase/alpine:3.13
2020-06-05 19:25:27 +00:00
2020-06-11 18:45:28 +00:00
ARG BUILDDATE
ENV BUILDDATEENV=${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-11-01 19:10:55 +00:00
jq \
2020-06-11 18:45:28 +00:00
make && \
echo "**** install packages ****" && \
apk add --no-cache \
py3-pip \
python3 && \
echo "**** setup directories ****" && \
mkdir /deem && \
mkdir /deem/Music && \
2020-06-11 18:45:28 +00:00
rm -R /config && \
ln -sf /deem/.config/deemix /config && \
ln -sf /downloads /deem/Music/deemix\ Music && \
chown abc:abc /deem && \
2020-06-11 18:45:28 +00:00
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