Docuseal-Listener/Dockerfile
David 54f429bf50 Dateien nach „/“ hochladen
Version die "form completed" checkt.
2025-12-08 15:06:39 +01:00

23 lines
668 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container at /app
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the aplication script into the container at /app
COPY webhook_listener.py .
# Expose the port the app runs on
EXPOSE 8000
#
# The crucial command to run the application
# It tells Gunicorn to run the 'app' object from the 'webhook_listener' file.
#
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "3", "webhook_listener:app"]