PNA-Assistant / Dockerfile.webhook
Lincoln Gombedza
Launch PNA Assistant SaaS — Stripe + webhook + Docker
b7e98d4 unverified
raw
history blame contribute delete
400 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN pip install --no-cache-dir \
fastapi>=0.110.0 \
uvicorn[standard]>=0.29.0 \
boto3>=1.34.0
COPY webhook.py .
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"
CMD ["uvicorn", "webhook:app", "--host", "0.0.0.0", "--port", "8080"]