CoolFace
Apppublic

apexherbert200/mnist-digit-api

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image2FROM python:3.9-slim3 4# Set the working directory inside the container5WORKDIR /app6 7# Copy the current directory contents into the container at /app8COPY . /app9 10# Install any needed packages specified in requirements.txt11RUN pip install --no-cache-dir --upgrade pip \12    && pip install --no-cache-dir -r requirements.txt13 14RUN pip install scikit-learn15 16 17# Make port 8000 available to the world outside this container18EXPOSE 786019 20# Run FastAPI app with Uvicorn server21CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]22