zspotify/Dockerfile
LeithC 9f841bf00f
Modified zs_config.json to only copy if exists
If zs_config.json does not exist it no longer forces a copy of the file.
2021-10-25 16:54:38 +10:30

20 lines
432 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 zspotify /app
COPY *zs_config.json /
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/python", "__main__.py"]