Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -9,6 +9,9 @@ COPY ./requirements.txt /code/requirements.txt
|
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
|
|
|
|
|
|
|
12 |
COPY . .
|
13 |
|
14 |
CMD ["python", "app.py"]
|
|
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
|
12 |
+
RUN --mount=type=secret,id=public_key,mode=0444,required=true \
|
13 |
+
git init && \
|
14 |
+
git remote add origin $(cat /run/secrets/public_key)
|
15 |
COPY . .
|
16 |
|
17 |
CMD ["python", "app.py"]
|