add docker build files
This commit is contained in:
parent
b225ceaae6
commit
32e0f50765
8
.build/prod/api.Dockerfile
Normal file
8
.build/prod/api.Dockerfile
Normal 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
11
.build/prod/compose.yml
Normal 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
|
10
.build/prod/keepalive.Dockerfile
Normal file
10
.build/prod/keepalive.Dockerfile
Normal 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
|
Loading…
x
Reference in New Issue
Block a user