CoolFace
Apppublic

Lencho2/Irrigation

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image.2FROM python:3.9-slim3 4# Prevent Python from writing .pyc files to disc5ENV PYTHONDONTWRITEBYTECODE=16# Ensure stdout and stderr are flushed immediately7ENV PYTHONUNBUFFERED=18 9# Set the working directory in the container.10WORKDIR /app11 12# Copy requirements file and install Python dependencies.13COPY requirements.txt /app/14RUN pip install --upgrade pip && pip install -r requirements.txt15 16# Copy the rest of the application code.17COPY . /app18 19# Expose the port the app runs on.20EXPOSE 786021 22# Define the command to run your app.23CMD ["python", "app.py"]24