CoolFace
Apppublic

pranit144/Institute_Inspection_image_processing

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1# Base image2FROM python:3.9-slim3 4# Set the working directory5WORKDIR /app6 7# Copy only the dependency file first to leverage Docker cache8COPY requirements.txt .9 10# Install dependencies (make sure python-dotenv and gunicorn are in requirements.txt)11RUN pip install --no-cache-dir -r requirements.txt12 13# Copy the rest of the application files14COPY . .15 16# Expose the port your app runs on17EXPOSE 786018 19# Command to run the application20CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]21