-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from kretes/py_310
python 3.10
- Loading branch information
Showing
4 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM python:3.7 | ||
ARG arch_version | ||
|
||
FROM python:3.10 as base | ||
|
||
MAINTAINER MLR <[email protected]> | ||
|
||
|
@@ -7,4 +9,12 @@ COPY requirements.txt setup.py Makefile README.md /allrank/ | |
|
||
RUN make -C /allrank install-reqs | ||
|
||
WORKDIR /allrank | ||
WORKDIR /allrank | ||
|
||
FROM base as CPU | ||
RUN python3 -m pip install torchvision==0.14.1 torch==1.13.1 --extra-index-url https://download.pytorch.org/whl/cpu | ||
|
||
FROM base as GPU | ||
RUN python3 -m pip install torchvision==0.14.1 torch==1.13.1 | ||
|
||
FROM ${arch_version} as FINAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters