add docker related files
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
__pycache__
|
||||||
|
/static/output/*
|
||||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
||||||
|
|
||||||
|
CMD [ "python", "main.py" ]
|
||||||
13
docker-compose.yaml
Normal file
13
docker-compose.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
image-tools:
|
||||||
|
build: .
|
||||||
|
container_name: image-tools
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 7310:7310
|
||||||
|
networks:
|
||||||
|
- default_net
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default_net:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user