Add Docker support with sigra container

This commit is contained in:
eka
2026-03-01 08:57:54 +05:00
parent 9a9c58afc0
commit 8fa2dbcb06
4 changed files with 37 additions and 0 deletions

9
.dockerignore Normal file
View File

@@ -0,0 +1,9 @@
__pycache__
*.pyc
.git
.gitignore
venv
.env
*.md
Dockerfile
docker-compose.yml

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.13-slim
WORKDIR /app
RUN pip install --no-cache-dir flask==3.1.3 jinja2==3.1.6 werkzeug==3.1.6
COPY . .
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=5000
EXPOSE 5000
CMD ["python", "app.py"]

6
build.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
echo "Building Docker image: sigra"
docker build -t sigra .
echo "Build complete!"

7
run.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -e
echo "Starting sigra container..."
docker run -d --name sigra -p 5000:5000 sigra
echo "Container 'sigra' is running!"
echo "Open http://localhost:5000"