Skip to content

Commit 62ca82c

Browse files
authored
Create Dockerfile
1 parent c5c4fdb commit 62ca82c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM python:3.11-slim
2+
3+
LABEL maintainer="kelpejol"
4+
LABEL description="LLM Output Stability Gate using UQLM"
5+
LABEL version="1.0.0"
6+
7+
WORKDIR /app
8+
9+
# Install dependencies
10+
COPY requirements.txt .
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# Copy application code
14+
COPY gate/ ./gate/
15+
16+
# Environment variables
17+
ENV PYTHONUNBUFFERED=1 \
18+
PYTHONDONTWRITEBYTECODE=1 \
19+
PORT=8000 \
20+
HOST=0.0.0.0
21+
22+
# Expose port
23+
EXPOSE 8000
24+
25+
# Health check
26+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
27+
CMD python -c "import requests; requests.get('http://localhost:8000/health')" || exit 1
28+
29+
# Run application
30+
CMD ["uvicorn", "gate.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)