FROM python:3.11 | |
RUN apt-get install -y git | |
WORKDIR /app | |
RUN --mount=type=secret,id=GITHUB,mode=0444,required=true \ | |
GITHUB=$(cat /run/secrets/GITHUB) && \ | |
git clone https://${GITHUB}@github.com/omrahm/proxy.git /app | |
RUN pip install -r requirements.txt | |
EXPOSE 7860 | |
CMD [ "python3", "index.py" ] |