ofermend commited on
Commit
e68bf6c
1 Parent(s): 3242905
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -4,8 +4,8 @@ WORKDIR /app
4
 
5
  COPY ./requirements.txt /app/requirements.txt
6
 
7
- ARG GITHUB_TOKEN
8
- RUN 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
 
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