Dockerfile 409 B

12345678910111213141516171819
  1. FROM python:3.9-alpine as base
  2. RUN apk --update add git ffmpeg
  3. FROM base as builder
  4. RUN mkdir /install
  5. WORKDIR /install
  6. COPY requirements.txt /requirements.txt
  7. RUN apk add gcc libc-dev zlib zlib-dev jpeg-dev \
  8. && pip install --prefix="/install" -r /requirements.txt
  9. FROM base
  10. COPY --from=builder /install /usr/local
  11. COPY zspotify /app
  12. WORKDIR /app
  13. ENTRYPOINT ["/usr/local/bin/python", "__main__.py"]