zotify/Dockerfile

22 lines
513 B
Docker
Raw Permalink Normal View History

2021-12-26 06:25:14 +01:00
FROM python:3.9-alpine as base
2022-02-16 18:19:01 +01:00
RUN apk --update add ffmpeg
2021-12-26 06:25:14 +01:00
FROM base as builder
2023-04-25 11:57:54 +02:00
2021-12-26 06:25:14 +01:00
WORKDIR /install
COPY requirements.txt /requirements.txt
2023-04-25 11:57:54 +02:00
RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev
RUN pip install --prefix="/install" -r /requirements.txt
2021-12-26 06:25:14 +01:00
FROM base
2023-04-25 11:57:54 +02:00
COPY --from=builder /install /usr/local/lib/python3.9/site-packages
RUN mv /usr/local/lib/python3.9/site-packages/lib/python3.9/site-packages/* /usr/local/lib/python3.9/site-packages/
2022-02-16 18:19:01 +01:00
COPY zotify /app/zotify
2023-04-25 11:57:54 +02:00
2021-12-26 06:25:14 +01:00
WORKDIR /app
2023-04-25 11:57:54 +02:00
CMD ["python3", "-m", "zotify"]