CoolFace
Apppublic

GouravDeepak/Mark3

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1# Use a specific, stable version of the official Python image2FROM python:3.11.9-slim-bullseye3 4# Set environment variables to prevent Python from writing .pyc files5ENV PYTHONDONTWRITEBYTECODE 16ENV PYTHONUNBUFFERED 17 8# Set the working directory inside the container9WORKDIR /code10 11# Install system dependencies that some Python packages might need12RUN apt-get update && apt-get install -y --no-install-recommends build-essential13 14# Copy the requirements file and install packages15COPY requirements.txt .16RUN pip install --no-cache-dir -r requirements.txt17 18# Copy the rest of the application code19COPY . .20 21# Expose the port the app will run on22EXPOSE 786023 24# The command to run the application25CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:7860", "app:app"]