-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
58 lines (45 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
##########################################################
FROM alpine as base
RUN apk update \
&& apk upgrade \
&& apk add --no-cache \
gstreamer \
mopidy \
py-pip \
alpine-sdk \
python3-dev\
dumb-init \
curl
RUN pip3 install --upgrade --break-system-packages pip \
&& pip3 install --break-system-packages --no-cache-dir Mopidy-TuneIn Mopidy-Local Mopidy-Podcast Mopidy-Podcast \
&& rm -rf ~/.cache/pip
##########################################################
FROM base as muse
ARG app_path
# Base dir /app
WORKDIR $app_path
COPY mopidy_muse/mopidy.conf /root/.config/mopidy.conf
COPY LICENSE ./
COPY MANIFEST.in ./
COPY README.md ./
COPY pyproject.toml ./
ADD ./mopidy_muse ./mopidy_muse
#VOLUME ${app_path}/mopidy_muse/static
RUN pip3 install --break-system-packages -e .
EXPOSE 6680
CMD ["mopidy"]
##########################################################
FROM base as prod
ARG app_path
# Base dir /app
WORKDIR $app_path
COPY mopidy_muse/mopidy.conf /root/.config/mopidy.conf
COPY LICENSE ./
COPY MANIFEST.in ./
COPY README.md ./
COPY pyproject.toml ./
ADD ./mopidy_muse ./mopidy_muse
ADD ./build ./mopidy_muse/static
RUN pip install --break-system-packages -e .
EXPOSE 6680
CMD ["mopidy"]