EduScam / Dockerfile
Amalia-mahdi's picture
Rename Dockerfile.txt to Dockerfile
c0fefd8 verified
raw
history blame contribute delete
456 Bytes
FROM python:3.10
# Create non-root user
RUN useradd -m -u 1000 user
WORKDIR /app
# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files and assign ownership
COPY --chown=user:user . .
# Switch to non-root user
USER user
# Expose port for Gradio frontend
EXPOSE 7860
# Launch Gradio (which will internally launch FastAPI)
CMD ["python", "main_gradio.py"]