DeepfakeDetection / Dockerfile
kautilya286's picture
Add Application File
8869a1f
raw
history blame contribute delete
476 Bytes
FROM python:3.10-slim
# Avoid Python .pyc files
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set up user and workspace
RUN useradd -m -u 1000 user
USER user
WORKDIR /app
ENV PATH="/home/user/.local/bin:$PATH"
# Copy and install dependencies
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy all app code
COPY --chown=user . .
# Run the app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]