added docker prodbuild and dev env

This commit is contained in:
Shihaam Abdul Rahman 2024-12-20 06:14:46 +05:00
parent 3ecf2e8dce
commit b45767d74c
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
4 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,9 @@
FROM python:3.12.7-slim-bookworm
WORKDIR /var/www/html
COPY requirements.txt /tmp
RUN pip install -r /tmp/requirements.txt
CMD python proxy.py

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

@ -0,0 +1,6 @@
services:
proxy:
build:
context: ../../
dockerfile: .build/prod/proxy.Dockerfile
image: git.shihaam.dev/sarlink/omada-api-proxy/proxy

View File

@ -0,0 +1,7 @@
FROM python:3.12.7-slim-bookworm
WORKDIR /var/www/html
COPY . .
RUN pip install -r requirements.txt
CMD python proxy.py

10
compose.yml Normal file
View File

@ -0,0 +1,10 @@
services:
proxy:
build:
context: .
dockerfile: .build/dev/proxy.Dockerfile
hostname: omada-proxy
volumes:
- ./:/var/www/html/
ports:
- 8000:8000