/
/
/
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# SMARTFADES TO REMOVE
14RUN apk add --no-cache build-base llvm15-dev libsndfile-dev
15ENV LLVM_CONFIG="/usr/bin/llvm-config-15"
16# END SMARTFADES TO REMOVE
17
18# add some additional packages that are useful for debugging
19RUN set -x \
20 && apk update \
21 && apk add -f jq htop git && \
22 # pre-install base requirements to save a bit of startup time
23 uv venv $VIRTUAL_ENV && \
24 uv pip install \
25 --no-cache \
26 --link-mode=copy \
27 -r "https://raw.githubusercontent.com/music-assistant/server/refs/heads/dev/requirements_all.txt"
28
29VOLUME [ "/data", "/cache" ]
30EXPOSE 8095
31
32RUN chmod 777 -R /app && \
33 chmod 777 -R /tmp
34
35COPY entrypoint.sh /app/entrypoint.sh
36
37ENTRYPOINT ["/app/entrypoint.sh"]
38