added docker prodbuild and dev env
This commit is contained in:
parent
3ecf2e8dce
commit
b45767d74c
9
.build/dev/proxy.Dockerfile
Normal file
9
.build/dev/proxy.Dockerfile
Normal 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
6
.build/prod/compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
services:
|
||||
proxy:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: .build/prod/proxy.Dockerfile
|
||||
image: git.shihaam.dev/sarlink/omada-api-proxy/proxy
|
7
.build/prod/proxy.Dockerfile
Normal file
7
.build/prod/proxy.Dockerfile
Normal 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
10
compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
services:
|
||||
proxy:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .build/dev/proxy.Dockerfile
|
||||
hostname: omada-proxy
|
||||
volumes:
|
||||
- ./:/var/www/html/
|
||||
ports:
|
||||
- 8000:8000
|
Loading…
x
Reference in New Issue
Block a user