bangla-spam-detection / Dockerfile
mdadul
fix: import error
d3d41c0
raw
history blame contribute delete
443 Bytes
# Use a lightweight Python image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
# Copy the rest of the app code
COPY app /app
# Expose the port FastAPI will use
EXPOSE 8000
# Command to run the FastAPI app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]