Commit
·
93d46ec
1
Parent(s):
d94c442
git_token
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -15,8 +15,6 @@ WORKDIR /code
|
|
15 |
|
16 |
COPY ./requirements.txt /code/requirements.txt
|
17 |
|
18 |
-
RUN --mount=type=secret,id=git_token,mode=0444,required=true
|
19 |
-
|
20 |
# add conda
|
21 |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /code/
|
22 |
RUN chmod 777 /code/Miniconda3-latest-Linux-x86_64.sh
|
@@ -26,7 +24,9 @@ ENV PATH="/code/miniconda/bin:${PATH}"
|
|
26 |
RUN groupadd miniconda
|
27 |
RUN chgrp -R miniconda /code/miniconda/
|
28 |
RUN chmod 770 -R /code/miniconda/
|
29 |
-
|
|
|
|
|
30 |
|
31 |
# Set up a new user named "user" with user ID 1000
|
32 |
RUN useradd -m -u 1000 user
|
@@ -61,7 +61,7 @@ RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
61 |
RUN conda install -c conda-forge gradio -y
|
62 |
|
63 |
|
64 |
-
RUN git clone git+https://$
|
65 |
|
66 |
RUN pip3 install fine-tuning-examples/
|
67 |
|
|
|
15 |
|
16 |
COPY ./requirements.txt /code/requirements.txt
|
17 |
|
|
|
|
|
18 |
# add conda
|
19 |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -P /code/
|
20 |
RUN chmod 777 /code/Miniconda3-latest-Linux-x86_64.sh
|
|
|
24 |
RUN groupadd miniconda
|
25 |
RUN chgrp -R miniconda /code/miniconda/
|
26 |
RUN chmod 770 -R /code/miniconda/
|
27 |
+
|
28 |
+
ARG git_token=$(cat /run/secrets/git_token)
|
29 |
+
|
30 |
|
31 |
# Set up a new user named "user" with user ID 1000
|
32 |
RUN useradd -m -u 1000 user
|
|
|
61 |
RUN conda install -c conda-forge gradio -y
|
62 |
|
63 |
|
64 |
+
RUN git clone git+https://[email protected]/NASA-IMPACT/hls-foundation-os.git
|
65 |
|
66 |
RUN pip3 install fine-tuning-examples/
|
67 |
|