add docker build files

This commit is contained in:
Shihaam Abdul Rahman 2024-10-19 02:33:10 +05:00
parent b225ceaae6
commit 32e0f50765
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,8 @@
FROM python:3.9.20-slim-bookworm
RUN pip install python-dotenv flask
WORKDIR /app
COPY api.py tx.sh .
CMD python /app/api.py

11
.build/prod/compose.yml Normal file
View File

@ -0,0 +1,11 @@
services:
keepalive:
build:
context: ../../
dockerfile: .build/prod/keepalive.Dockerfile
image: git.shihaam.dev/shihaam/mib-payment-verify/keepalive
api:
build:
context: ../../
dockerfile: .build/prod/api.Dockerfile
image: git.shihaam.dev/shihaam/mib-payment-verify/api

View File

@ -0,0 +1,10 @@
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y curl && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY keepalive.sh .
RUN chmod +x keepalive.sh
CMD /app/keepalive.sh