zotify/Dockerfile
2023-04-25 10:03:26 +00:00

21 lines
513 B
Docker

FROM python:3.9-alpine as base
RUN apk --update add ffmpeg
FROM base as builder
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev
RUN pip install --prefix="/install" -r /requirements.txt
FROM base
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/
COPY zotify /app/zotify
WORKDIR /app
CMD ["python3", "-m", "zotify"]