ga2-e8c0f1 / Dockerfile
Rohan014's picture
Update Dockerfile
25778ae verified
raw
history blame contribute delete
323 Bytes
FROM python:3.11-slim
# Create non-root user with UID 1000
RUN useradd -m -u 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV APP_PORT=7152
EXPOSE 7152
# Switch to non-root user
USER user
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7152"]