-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (32 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
51 lines (32 loc) · 1.31 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:22.04
# RUN apt-get install libressl-dev
RUN apt-get update
RUN apt-get -y install libssl-dev python3 python3-dev python3-pip
RUN apt-get -y install wget curl git g++ cargo openssl pkg-config git-lfs
RUN apt-get -y install postgresql-client libpq-dev
# RUN apt-get -y install postgresql postgresql-client
RUN env
RUN python3 --version
WORKDIR /usr/src/app
COPY . .
RUN find / -name .cargo -print
RUN which cargo
RUN cargo --version
RUN rustc --version
RUN pip install --upgrade pip
RUN git lfs install --force
RUN git clone https://github.com/grivaz/FlyBaseAnnotationHelper.git
RUN cp /usr/src/app/config.ini /usr/src/app/FlyBaseAnnotationHelper/config/config.ini
WORKDIR /usr/src/app/FlyBaseAnnotationHelper
RUN git lfs install
RUN git clone https://huggingface.co/cgrivaz/FlyBaseGeneAbstractClassifier.git
WORKDIR /usr/src/app
# RUN echo $PWD
RUN pip install --prefer-binary -r requirements.txt
RUN pip3 install torch --index-url https://download.pytorch.org/whl/cpu
# pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
# TODO Add this step to the GoCD pipeline.
#curl https://ftp.ncbi.nlm.nih.gov/pub/pmc/PMC-ids.csv.gz --output input_files/PMC-ids.csv.gz
# gunzip PMC-ids.csv.gz
ENTRYPOINT /bin/sh
# CMD ["python3", "-u", "FlyBaseAnnotationHelper/update_resources.py"]