zotify/Dockerfile

22 lines
513 B
Docker
Raw Permalink Normal View History

2021-12-25 22:25:14 -07:00
FROM python:3.9-alpine as base
2022-02-16 10:19:01 -07:00
RUN apk --update add ffmpeg
2021-12-25 22:25:14 -07:00
FROM base as builder
2023-04-25 03:57:54 -06:00
2021-12-25 22:25:14 -07:00
WORKDIR /install
COPY requirements.txt /requirements.txt
2023-04-25 03:57:54 -06:00
RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev
RUN pip install --prefix="/install" -r /requirements.txt
2021-12-25 22:25:14 -07:00
FROM base
2023-04-25 03:57:54 -06: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 10:19:01 -07:00
COPY zotify /app/zotify
2023-04-25 03:57:54 -06:00
2021-12-25 22:25:14 -07:00
WORKDIR /app
2023-04-25 03:57:54 -06:00
CMD ["python3", "-m", "zotify"]