Dockerfile 697 B

1234567891011121314151617181920212223242526272829
  1. FROM python:3.12-alpine AS builder
  2. WORKDIR /usr/src/app
  3. RUN apk add --no-cache git gcc g++ musl-dev libffi-dev openssl-dev file make
  4. RUN mkdir -p ./zwift-offline
  5. COPY ./ ./zwift-offline
  6. RUN pip install --user --requirement ./zwift-offline/requirements.txt
  7. RUN pip install --user garth
  8. FROM python:3.12-alpine
  9. LABEL maintainer="zoffline <zoffline@tutanota.com>"
  10. WORKDIR /usr/src/app
  11. COPY --from=builder /root/.local/ /root/.local/
  12. ENV PATH=/root/.local/bin:$PATH
  13. COPY --from=builder /usr/src/app/zwift-offline/ zwift-offline/
  14. RUN chmod 777 zwift-offline/storage
  15. EXPOSE 443 80 3024/udp 3025 53/udp
  16. VOLUME /usr/src/app/zwift-offline/storage
  17. CMD [ "python", "zwift-offline/standalone.py" ]