-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 961 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
31
32
33
34
35
36
37
FROM python:3.12-alpine as base
RUN apk --update add ffmpeg
FROM base AS builder
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN apk add python3 py3-pip gcc libc-dev zlib zlib-dev jpeg-dev git
RUN pip install --prefix="/install" -r /requirements.txt
FROM base
LABEL org.opencontainers.image.authors="seji@tihoda.de"
ENV SPOTIFY_USERNAME=
ENV SPOTIFY_PASSWORD=
ENV TONIE_USERNAME=
ENV TONIE_PASSWORD=
ENV TONIE_HOUSEHOLD=
ENV TONIE_TIMEOUT=30
ENV DATA_PATH=/app/data
ENV CREATIVE_TONIE=
ENV PLAYLIST=
COPY --from=builder /install /usr/local/lib/python3.12/site-packages
RUN mv /usr/local/lib/python3.12/site-packages/lib/python3.12/site-packages/* /usr/local/lib/python3.12/site-packages/
RUN apk --no-cache add tini bash supercronic
WORKDIR /app
COPY spoonie.py .
COPY entrypoint.sh .
COPY crontab .
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/bin/bash", "/app/entrypoint.sh"]