Spaces:
Running
Running
upd Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -3,6 +3,11 @@ FROM python:3.10
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
6 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
7 |
|
8 |
# User
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
+
|
7 |
+
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
8 |
+
if [ -z "$(cat /run/secrets/GITHUB_TOKEN)" ]; then echo "GITHUB_TOKEN is not set"; exit 1; fi && \
|
9 |
+
sed -i "s/{GITHUB_TOKEN}/$(cat /run/secrets/GITHUB_TOKEN)/g" /app/requirements.txt
|
10 |
+
|
11 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
12 |
|
13 |
# User
|