| |
| FROM python:3.9 |
|
|
| |
| WORKDIR /code |
|
|
| |
| COPY ./requirements.txt /code/requirements.txt |
|
|
| |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt |
|
|
| |
| COPY . . |
|
|
| |
|
|
| |
| |
| RUN --mount=type=secret,id=public_key,mode=0444,required=true git init && \ |
| git remote add remote1 $(cat /run/secrets/public_key) |
| RUN --mount=type=secret,id=private_key,mode=0444,required=true git remote add remote2 $(cat /run/secrets/private_key) |
| RUN --mount=type=secret,id=url_endpoint,mode=0444,required=true git remote add remote3 $(cat /run/secrets/url_endpoint) |
|
|
| |
|
|
| |
| CMD ["python", "app.py"] |