File size: 562 Bytes
f2bd87c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.11-slim
RUN apt-get update && apt-get install -y git sed
RUN git clone https://github.com/oDaiSuno/jetbrainsai2api.git /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
RUN --mount=type=secret,id=JEB_TOKEN,mode=0444,required=true \
cat /run/secrets/JEB_TOKEN > jetbrainsai.json && chmod 777 jetbrainsai.json
RUN --mount=type=secret,id=API_KEY,mode=0444,required=true \
cat /run/secrets/API_KEY > client_api_keys.json && chmod 777 client_api_keys.json
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |