Danial69749/Digit_recognition
0
1# Use official python base image2FROM python:3.10-slim3 4# Install required system packages5RUN apt-get update && apt-get install -y build-essential6 7# Set working directory8WORKDIR /code9 10# Copy local files into container11COPY requirements.txt .12COPY main.py .13COPY mnist_cnn_model.h5 .14 15# Install Python dependencies16RUN pip install --no-cache-dir -r requirements.txt17 18# Expose port19EXPOSE 786020 21# Start the server22CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]