Skip to content

Commit fb057ef

Browse files
committed
Updated dockerfile to start from pytorch
1 parent ed29226 commit fb057ef

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docker/Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM ubuntu
1+
FROM pytorch/pytorch
22

33
# Installing build dependencies
4-
RUN apt-get update && apt-get install -y build-essential python3 python3-pip git curl unzip
4+
RUN apt-get update && apt-get install -y git curl unzip
55

66
# Prepare environment UTF-8
77
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
@@ -23,17 +23,21 @@ RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-ke
2323
apt-get -y install google-chrome-stable
2424

2525
# Get chromedriver
26-
RUN wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip && \
26+
RUN cd /work && wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip && \
2727
unzip chromedriver_linux64.zip
2828

2929
# Setup chromedriver as env variable
3030
ENV CHROMEDRIVER_PATH=/work/chromedriver
3131

3232
# Preparing Python build environment
33-
RUN pip3 install -r /work/frontend-regression-validator/requirements.txt
33+
RUN /opt/conda/bin/activate base && python3 -m pip install -r /work/frontend-regression-validator/requirements.txt
34+
#RUN conda install --file /work/frontend-regression-validator/requirements.txt
3435

3536
# Extract the model files
3637
RUN cd /work/frontend-regression-validator/fred/inference && cat model_files.bz2.parta* > model_files.bz2 && tar xjf model_files.bz2
3738

39+
# Install JDK for proxy
40+
RUN apt-get install -y openjdk-8-jdk
41+
3842
# Start notebook
39-
CMD cd /work/frontend-regression-validator/fred && python3 run.py
43+
CMD cd /work/frontend-regression-validator/fred && git pull && python3 run.py

0 commit comments

Comments
 (0)