From 8fa2dbcb06a833c1b6c6555fe65cd67f508d531c Mon Sep 17 00:00:00 2001 From: eka Date: Sun, 1 Mar 2026 08:57:54 +0500 Subject: [PATCH] Add Docker support with sigra container --- .dockerignore | 9 +++++++++ Dockerfile | 15 +++++++++++++++ build.sh | 6 ++++++ run.sh | 7 +++++++ 4 files changed, 37 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100755 build.sh create mode 100755 run.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f903839 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +__pycache__ +*.pyc +.git +.gitignore +venv +.env +*.md +Dockerfile +docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c570064 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e980d68 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e + +echo "Building Docker image: sigra" +docker build -t sigra . +echo "Build complete!" diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..f1d0ef1 --- /dev/null +++ b/run.sh @@ -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"