-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (39 loc) · 1.14 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
ARG DEBIAN_VERSION
FROM rust:slim-${DEBIAN_VERSION:-bookworm} as builder
RUN apt-get update
RUN apt-get install -y pkg-config
RUN apt-get install -y libssl-dev
RUN apt-get install -y libsqlite3-dev
RUN cargo install listenbrainz-mpd
ARG DEBIAN_VERSION
FROM debian:${DEBIAN_VERSION:-bookworm}-slim AS INTERM
RUN apt-get update
RUN apt-get install -y openssl
RUN apt-get install -y libssl3
RUN apt-get install -y ca-certificates
RUN apt-get install -y sqlite3
RUN rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/listenbrainz-mpd /usr/bin/listenbrainz-mpd
FROM scratch
COPY --from=INTERM / /
LABEL maintainer="GioF71"
LABEL source="https://github.com/GioF71/listenbrainz-mpd-docker"
ENV LISTENBRAINZ_TOKEN ""
ENV LISTENBRAINZ_TOKEN_FILE ""
# enable with yes, y, true (case insensitive)
ENV ENABLE_CACHE ""
ENV CACHE_DIRECTORY ""
ENV CACHE_FILE ""
ENV MPD_ADDRESS ""
ENV MPD_PASSWORD ""
ENV MPD_PASSWORD_FILE ""
ENV LISTENBRAINZ_MPD_LOG ""
ENV GENRE_AS_FOLKSONOMY ""
ENV GENRE_SEPARATOR ""
ENV PUID ""
ENV PGID ""
VOLUME /cache
RUN mkdir -p /app/bin
COPY app/bin/run.sh /app/bin/
RUN chmod +x /app/bin/run.sh
ENTRYPOINT [ "/app/bin/run.sh" ]