zotify/Dockerfile

19 lines
407 B
Docker
Raw Normal View History

2021-12-26 06:25:14 +01:00
FROM python:3.9-alpine as base
RUN apk --update add git ffmpeg
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev \
&& pip install --prefix="/install" -r /requirements.txt
FROM base
COPY --from=builder /install /usr/local
COPY zotify /app
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/python", "__main__.py"]