jeb2a / Dockerfile
rr1's picture
Create Dockerfile
f2bd87c verified
raw
history blame contribute delete
562 Bytes
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"]