generated from microsoft/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (20 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM dockerhub.yaoyy.moe/rosettacommons/rosetta:mpi
ENV HTTP_PROXY=http://a100-internal.yaoyy.moe:10089
ENV HTTPS_PROXY=http://a100-internal.yaoyy.moe:10089
ENV ALL_PROXY=http://a100-internal.yaoyy.moe:10089
ENV http_proxy=http://a100-internal.yaoyy.moe:10089
ENV https_proxy=http://a100-internal.yaoyy.moe:10089
ENV all_proxy=http://a100-internal.yaoyy.moe:10089
ENV GITHUB_ROSETTA_TEST=YES
RUN apt-get update -y && apt-get install git curl wget -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple \
&& python -m pip install --no-cache-dir --upgrade pip \
&& python -m pip install --no-cache-dir 'flit>=3.8.0'
ENV FLIT_ROOT_INSTALL=1
COPY pyproject.toml .
RUN touch README.md \
&& mkdir -p src/RosettaPy \
&& python -m flit install --no-cache-dir --only-deps --deps develop \
&& rm -r pyproject.toml README.md src