Spaces:
Running
Running
debug
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -4,8 +4,8 @@ WORKDIR /app
|
|
4 |
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
|
7 |
-
|
8 |
-
|
9 |
sed -i "s/{GITHUB_TOKEN}/$GITHUB_TOKEN/g" /app/requirements.txt
|
10 |
|
11 |
RUN cat /app/requirements.txt
|
|
|
4 |
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
|
7 |
+
RUN --mount=type=secret,id=GITHUB_OKEN,mode=0444,required=true \
|
8 |
+
if [ -z "$GITHUB_TOKEN" ]; then echo "GITHUB_TOKEN is not set"; exit 1; fi && \
|
9 |
sed -i "s/{GITHUB_TOKEN}/$GITHUB_TOKEN/g" /app/requirements.txt
|
10 |
|
11 |
RUN cat /app/requirements.txt
|