/
/
/
1# syntax=docker/dockerfile:1
2#
3# DEV MASS image: base image + MASS installed from prebuilt wheel
4#
5FROM ghcr.io/music-assistant/base:latest
6
7ENV VIRTUAL_ENV=/app/venv
8ENV PATH="$VIRTUAL_ENV/bin:$PATH"
9
10# ensure UV is installed
11COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
12
13# add some additional packages that are useful for debugging
14RUN set -x \
15 && apt-get update \
16 && apt-get install -y --no-install-recommends jq htop git npm nodejs && \
17 npm install -g yarn && \
18 apt-get clean && \
19 rm -rf /var/lib/apt/lists/* && \
20 # pre-install base requirements to save a bit of startup time
21 uv venv $VIRTUAL_ENV && \
22 uv pip install \
23 --no-cache \
24 --link-mode=copy \
25 -r "https://raw.githubusercontent.com/music-assistant/server/refs/heads/dev/requirements_all.txt"
26
27VOLUME [ "/data" ]
28EXPOSE 8095
29
30RUN chmod 777 -R /app && \
31 chmod 777 -R /tmp
32
33COPY entrypoint.sh /app/entrypoint.sh
34
35ENTRYPOINT ["/app/entrypoint.sh"]
36