ML-predictor / Dockerfile
philip-singer's picture
Update Dockerfile
ac96225 verified
raw
history blame contribute delete
333 Bytes
# Dockerfile
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy everything
COPY . /app
# Install dependencies
RUN pip install flask torch numpy pandas joblib scikit-learn==1.6.1 gunicorn
# Expose port
EXPOSE 7860
# Run the app with gunicorn (production-ready server)
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]