File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu
1
+ FROM pytorch/pytorch
2
2
3
3
# 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
5
5
6
6
# Prepare environment UTF-8
7
7
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
23
23
apt-get -y install google-chrome-stable
24
24
25
25
# 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 && \
27
27
unzip chromedriver_linux64.zip
28
28
29
29
# Setup chromedriver as env variable
30
30
ENV CHROMEDRIVER_PATH=/work/chromedriver
31
31
32
32
# 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
34
35
35
36
# Extract the model files
36
37
RUN cd /work/frontend-regression-validator/fred/inference && cat model_files.bz2.parta* > model_files.bz2 && tar xjf model_files.bz2
37
38
39
+ # Install JDK for proxy
40
+ RUN apt-get install -y openjdk-8-jdk
41
+
38
42
# 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
You can’t perform that action at this time.
0 commit comments