CoolFace
Apppublic

pranit144/Pest_Geospatial_analytics

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Base image2FROM python:3.9-slim3 4# Set the working directory5WORKDIR /app6 7# Copy only the requirements first (to leverage Docker cache)8COPY requirements.txt /app/requirements.txt9 10# Install dependencies11RUN pip install --no-cache-dir -r requirements.txt12 13# Copy the rest of the application files14COPY . /app15 16# Create the directory for cached images17RUN mkdir -p cache_images18 19# Expose the port your app runs on20EXPOSE 786021 22# Command to run the application23CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]24