mib-payment-verify/.build/prod/api.Dockerfile

11 lines
287 B
Docker
Raw Normal View History

2024-10-19 02:33:10 +05:00
FROM python:3.9.20-slim-bookworm
2024-10-19 04:23:11 +05:00
RUN pip install python-dotenv flask gunicorn
2024-10-19 03:00:53 +05:00
RUN apt-get update && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
2024-10-19 02:33:10 +05:00
WORKDIR /app
COPY api.py tx.sh .
2024-10-19 03:00:53 +05:00
RUN chmod +x tx.sh api.py
2024-10-19 02:33:10 +05:00
2024-10-19 04:23:11 +05:00
CMD gunicorn --workers 4 --bind 0.0.0.0:5000 api:app