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

11 lines
316 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-12-20 16:56:03 +05:00
RUN apt-get update && apt-get install -y curl jq && apt-get clean && rm -rf /var/lib/apt/lists/*
2024-10-19 02:33:10 +05:00
WORKDIR /app
2024-10-20 02:03:02 +05:00
COPY api.py tx.sh fetchname.sh .
RUN chmod +x tx.sh api.py fetchname.sh
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