1
mirror of https://github.com/Footsiefat/zspotify synced 2021-12-21 22:06:14 +01:00
zspotify/Dockerfile
jkemming 2c88a5cd56 feat: Improve Docker setup
- Remember credentials between container starts
- Use same uid/gid in container as on host
2021-11-17 21:43:41 +01:00

19 lines
409 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
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/python", "__main__.py"]