forked from AngellusMortis/sxm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 923 Bytes
/
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
FROM python:3.9.6-slim-buster
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.title=sxm-player
LABEL org.opencontainers.image.description=
LABEL org.opencontainers.image.url=https://github.com/AngellusMortis/sxm-player
LABEL org.opencontainers.image.source=https://github.com/AngellusMortis/sxm-docker
LABEL org.opencontainers.image.licenses=MIT
RUN apt-get update \
&& apt-get install -y ffmpeg procps curl \
# cleaning up unused files
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
ARG SXM="sxm==0.2.8"
ARG SXM_PLAYER="sxm-player==0.2.5"
ARG SXM_PLAYER_PLUGINS="sxm-discord==0.2.5"
RUN pip install --no-cache-dir -U pip \
&& pip install --no-cache-dir $SXM $SXM_PLAYER $SXM_PLAYER_PLUGINS
COPY ./start.sh /start.sh
RUN chmod +x /start.sh
VOLUME ["/output"]
EXPOSE 9999/tcp
CMD /start.sh