zspotify/Dockerfile
el-gringo-alto 5966bc00b7 Revert "Merge pull request #107 from jaredrossberg/docker"
This reverts commit 898e20dc6d, reversing
changes made to 938b647753.
2021-10-24 21:36:27 -04:00

20 lines
421 B
Docker

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 src /app
COPY zs_config.json /
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/python", "app.py"]