1 Star 0 Fork 156

百舸/Macast

forked from 小方/Macast 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
小方 提交于 2021-08-27 01:59 . Using Docker to build for linux
FROM python:3.7-slim-buster
ENV PYPI_URL=https://pypi.tuna.tsinghua.edu.cn
ENV PYPI_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
RUN \
set -x &&\
# install gi to python3.7/site-packages
mkdir -p /usr/lib/python3 &&\
ln -s /usr/local/lib/python3.7/site-packages /usr/lib/python3/dist-packages &&\
# update system
apt-get update &&\
# install requirements
apt-get install -y --no-install-recommends \
binutils \
python3-gi \
libgtk-3-dev \
libappindicator3-dev \
upx \
git
RUN \
# specified a custom URL for PYPI
mkdir -p /root/.pip &&\
echo "[global]" > /root/.pip/pip.conf &&\
echo "index = $PYPI_URL" >> /root/.pip/pip.conf &&\
echo "index-url = $PYPI_INDEX_URL" >> /root/.pip/pip.conf &&\
echo "trusted-host = $(echo $PYPI_URL | perl -pe 's|^.*?://(.*?)(:.*?)?/.*$|$1|')" >> /root/.pip/pip.conf &&\
# install pyinstaller
pip install pyinstaller && \
mkdir /src/ &&\
# build entrypoint.sh
echo \#\!/bin/bash -i >> /entrypoint.sh &&\
echo >> /entrypoint.sh &&\
echo "set -e" >> /entrypoint.sh &&\
echo "cd /src" >> /entrypoint.sh &&\
echo "echo \"\$@\"" >> /entrypoint.sh &&\
echo "sh -c \"\$@\"" >> /entrypoint.sh &&\
chmod +x /entrypoint.sh
VOLUME /src/
WORKDIR /src/
SHELL ["/bin/bash", "-i", "-c"]
ENTRYPOINT ["/entrypoint.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/racham/Macast.git
git@gitee.com:racham/Macast.git
racham
Macast
Macast
main

搜索帮助