From 573fe111b59c3c971363681ef3c8dea89a47ab60 Mon Sep 17 00:00:00 2001 From: Pradeep A Date: Fri, 25 Feb 2022 19:58:36 +0530 Subject: [PATCH 1/3] Docker Support. --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..10b97ac --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.8-slim-buster +WORKDIR /code +COPY . /code/ +RUN pip3 install -r requirements.txt +ENTRYPOINT [ "/code/scripts/start.sh" ] +CMD [ "python","/code/app/main.py"] \ No newline at end of file From 9a17f50a36884678ecf3f2d40d15a9c8c0a74d3d Mon Sep 17 00:00:00 2001 From: Pradeep A Date: Fri, 25 Feb 2022 20:01:05 +0530 Subject: [PATCH 2/3] Added `shebang (#!)` --- scripts/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/start.sh b/scripts/start.sh index 2ac42f1..e591bef 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,3 +1,5 @@ +#!/bin/bash + git pull python3 -m venv venv source venv/bin/activate From 82d5b9ff2c4c5ed3c488d4b4d8ee176c32769f4c Mon Sep 17 00:00:00 2001 From: Pradeep A Date: Mon, 28 Feb 2022 10:50:34 +0530 Subject: [PATCH 3/3] Removed `cmd` --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 10b97ac..984ae86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,3 @@ WORKDIR /code COPY . /code/ RUN pip3 install -r requirements.txt ENTRYPOINT [ "/code/scripts/start.sh" ] -CMD [ "python","/code/app/main.py"] \ No newline at end of file