ofermend commited on
Commit
0035ac7
1 Parent(s): 2e0e23d
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -5,9 +5,9 @@ WORKDIR /app
5
  COPY ./requirements.txt /app/requirements.txt
6
 
7
  RUN --mount=type=secret,id=GITHUB_TOKEN,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
12
 
13
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
 
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 cat /app/requirements.txt
12
 
13
  RUN pip3 install --no-cache-dir -r /app/requirements.txt