From dadab871955a68b3dd58834a10ff6203f6cd9b66 Mon Sep 17 00:00:00 2001 From: mdivecky Date: Sun, 5 Mar 2023 19:31:31 +0100 Subject: [PATCH] dockerization --- .gitignore | 1 + Dockerfile | 4 ++++ app.py => app/app.py | 0 requirements.txt => app/requirements.txt | 0 {templates => app/templates}/account-payment.html | 0 {templates => app/templates}/base.html | 0 {templates => app/templates}/cash-payment.html | 0 {templates => app/templates}/checkout.html | 0 {templates => app/templates}/error.html | 0 {templates => app/templates}/index.html | 0 docker-compose.yml | 10 ++++++++++ 11 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile rename app.py => app/app.py (100%) rename requirements.txt => app/requirements.txt (100%) rename {templates => app/templates}/account-payment.html (100%) rename {templates => app/templates}/base.html (100%) rename {templates => app/templates}/cash-payment.html (100%) rename {templates => app/templates}/checkout.html (100%) rename {templates => app/templates}/error.html (100%) rename {templates => app/templates}/index.html (100%) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed8ebf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a093686 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM python:3.9.1 +ADD . /app +WORKDIR /app +RUN pip install -r requirements.txt \ No newline at end of file diff --git a/app.py b/app/app.py similarity index 100% rename from app.py rename to app/app.py diff --git a/requirements.txt b/app/requirements.txt similarity index 100% rename from requirements.txt rename to app/requirements.txt diff --git a/templates/account-payment.html b/app/templates/account-payment.html similarity index 100% rename from templates/account-payment.html rename to app/templates/account-payment.html diff --git a/templates/base.html b/app/templates/base.html similarity index 100% rename from templates/base.html rename to app/templates/base.html diff --git a/templates/cash-payment.html b/app/templates/cash-payment.html similarity index 100% rename from templates/cash-payment.html rename to app/templates/cash-payment.html diff --git a/templates/checkout.html b/app/templates/checkout.html similarity index 100% rename from templates/checkout.html rename to app/templates/checkout.html diff --git a/templates/error.html b/app/templates/error.html similarity index 100% rename from templates/error.html rename to app/templates/error.html diff --git a/templates/index.html b/app/templates/index.html similarity index 100% rename from templates/index.html rename to app/templates/index.html diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d422877 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.8" +services: + app: + build: . + command: python app.py + ports: + - "5000:5000" + volumes: + - .:/app + container_name: trhlina-bar \ No newline at end of file