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