[PATCH 1/2] Delete extra directory in Dockerfile
Export this patch
---
This commit deletes extra directory inside the Dockerfile
Dockerfile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index df3ef97..0314a00 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,12 +2,12 @@ FROM python:3.9-buster
WORKDIR /workdir
-COPY ./requirements.txt /workdir/requirements.txt
+COPY ./requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
-COPY . /workdir
+COPY . .
EXPOSE 3000
-CMD python index.py
\ No newline at end of file
+CMD python index.py
--
2.45.2
[PATCH 2/2] Update Python image from 3.9 to 3.12
Export this patch
---
Update Dockerfile, Python image from 3.9-buster to 3.12-alpine
Dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Dockerfile b/Dockerfile
index 0314a00..eb82160 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.9-buster
+FROM python:3.12-alpine
WORKDIR /workdir
--
2.45.2
Patch applied. Thanks for your contribution.