Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xs233 committed Sep 5, 2022
1 parent 50bf38c commit 0a3e7e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions iflearner/business/homo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.9

ARG IFLEARNER_DIR=/iflearner
COPY requirements.txt $IFLEARNER_DIR/
COPY iflearner $IFLEARNER_DIR/iflearner
COPY examples $IFLEARNER_DIR/examples
ENV PYTHONPATH=$IFLEARNER_DIR
WORKDIR $IFLEARNER_DIR
RUN pip install -r requirements.txt -i https://pypi.douban.com/simple
RUN pip install torch==1.8.1+cpu torchvision==0.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html

0 comments on commit 0a3e7e9

Please sign in to comment.