Nicky Nicolson commited on
Commit
bdd1dd9
·
1 Parent(s): dc0d4a6

Move pip install

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -16
Dockerfile CHANGED
@@ -1,22 +1,25 @@
1
  FROM python:3.11
2
 
3
  ARG IHDELTA_DB_ARTIFACT_URL=$IHDELTA_DB_ARTIFACT_URL
4
- ARG GH_TOKEN=$GH_TOKEN
5
-
6
- RUN apt update && apt install -y \
7
- curl \
8
- gpg
9
- RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg;
10
- RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null;
11
- RUN apt update && apt install -y gh;
12
- RUN gh --help
13
- RUN apt install -y jq
14
- RUN jq --help
15
- RUN echo ${GH_TOKEN} > mytoken.txt
16
- RUN ls -l mytoken.txt
17
 
18
  WORKDIR /code
19
 
 
 
 
20
  COPY ./downloadartifact.py /code
21
  RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
22
  python /code/downloadartifact.py ${IHDELTA_DB_ARTIFACT_URL} /run/secrets/GH_TOKEN /code/ihdelta.db.zip
@@ -25,9 +28,6 @@ RUN ls -l /code
25
  # Download ID is set as a space variable
26
  # By default it is a download of all Solanum preserved specimen records (c600K)
27
 
28
- COPY ./requirements.txt /code/requirements.txt
29
-
30
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
31
 
32
  # Get ihdelta sqlite db
33
  ADD https://drive.google.com/uc?export=download&id=1on1yWtPihmWSmuMqmEl1blV2fQVtxI62 /code/ihdelta.db
 
1
  FROM python:3.11
2
 
3
  ARG IHDELTA_DB_ARTIFACT_URL=$IHDELTA_DB_ARTIFACT_URL
4
+ # ARG GH_TOKEN=$GH_TOKEN
5
+
6
+ # RUN apt update && apt install -y \
7
+ # curl \
8
+ # gpg
9
+ # RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg;
10
+ # RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null;
11
+ # # RUN apt update && apt install -y gh;
12
+ # # RUN gh --help
13
+ # RUN apt install -y jq
14
+ # RUN jq --help
15
+ # # RUN echo ${GH_TOKEN} > mytoken.txt
16
+ # # RUN ls -l mytoken.txt
17
 
18
  WORKDIR /code
19
 
20
+ COPY ./requirements.txt /code/requirements.txt
21
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
22
+
23
  COPY ./downloadartifact.py /code
24
  RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
25
  python /code/downloadartifact.py ${IHDELTA_DB_ARTIFACT_URL} /run/secrets/GH_TOKEN /code/ihdelta.db.zip
 
28
  # Download ID is set as a space variable
29
  # By default it is a download of all Solanum preserved specimen records (c600K)
30
 
 
 
 
31
 
32
  # Get ihdelta sqlite db
33
  ADD https://drive.google.com/uc?export=download&id=1on1yWtPihmWSmuMqmEl1blV2fQVtxI62 /code/ihdelta.db