FROM python:3.9
RUN apt-get update && apt-get install -y git
WORKDIR /app
RUN --mount=type=secret,id=TOKEN git clone $(cat /run/secrets/TOKEN) .
RUN ls -la /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY . .
CMD ["python", "application.py"]