LLMServer / Dockerfile
AurelioAguirre's picture
New Dockerfile, still dummy app, testing minimal req file. v3
9bbec6e
raw
history blame
431 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy only what's needed
COPY main/ ./main/
# Set environment variables
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
# Expose the port
EXPOSE 7680
# Use same command as working version
CMD ["python", "-m", "main.app"]