doublechocolatecup's picture
Upload Dockerfile
c75e7e4 verified
Raw History Blame Contribute Delete
965 Bytes
# ─────────────────────────────────────────────────────────────
# AI Interview Simulator β€” Hugging Face Dockerfile (FIXED)
# ─────────────────────────────────────────────────────────────
FROM python:3.10
# Environment settings
ENV PORT=7860
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Create non-root user
RUN useradd -m -u 1000 user
# Set working directory
WORKDIR /app
# Copy requirements first
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy all files
COPY . /app
# Switch to user
USER user
# Expose port
EXPOSE 7860
# Start app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]