1 Star 0 Fork 0

wilsonsui/zwift-offline

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 772 Bytes
一键复制 编辑 原始数据 按行查看 历史
oldnapalm 提交于 2023-02-11 23:18 +08:00 . Use dnspython
FROM python:3.10-alpine as builder
WORKDIR /usr/src/app
RUN apk add --no-cache git gcc g++ musl-dev libffi-dev openssl-dev file make
RUN git clone --depth 1 https://github.com/zoffline/zwift-offline
COPY requirements.txt requirements.txt
RUN pip install --user --requirement requirements.txt
RUN pip install --user git+https://github.com/oldnapalm/garmin-uploader.git
FROM python:3.10-alpine
MAINTAINER zoffline <zoffline@tutanota.com>
WORKDIR /usr/src/app
COPY --from=builder /root/.local/ /root/.local/
ENV PATH=/root/.local/bin:$PATH
COPY --from=builder /usr/src/app/zwift-offline/ zwift-offline/
RUN chmod 777 zwift-offline/storage
EXPOSE 443 80 3024/udp 3025 53/udp
VOLUME /usr/src/app/zwift-offline/storage
CMD [ "python", "zwift-offline/standalone.py" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wilson_sui/zwift-offline.git
git@gitee.com:wilson_sui/zwift-offline.git
wilson_sui
zwift-offline
zwift-offline
master

搜索帮助