From e1b420e10ec5aa68edbd38c2424ed428fe5ed21c Mon Sep 17 00:00:00 2001 From: somasekharab Date: Sat, 8 Apr 2023 12:49:13 +0000 Subject: [PATCH 1/3] python --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 58d0cb4..f65df07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:2.7 +FROM python:3.11 # Creating Application Source Code Directory RUN mkdir -p /usr/src/app From 8be5c2c42fcce338c6cd06d2ec823bffebc2f762 Mon Sep 17 00:00:00 2001 From: somasekharab Date: Sat, 8 Apr 2023 13:25:46 +0000 Subject: [PATCH 2/3] docker file chage --- apppython/Dockerfile2 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apppython/Dockerfile2 diff --git a/apppython/Dockerfile2 b/apppython/Dockerfile2 new file mode 100644 index 0000000..b1f145b --- /dev/null +++ b/apppython/Dockerfile2 @@ -0,0 +1,27 @@ +FROM python:3.8 + +# Creating Application Source Code Directory +RUN mkdir -p /usr/src/apppython1 + +# Setting Home Directory for containers +WORKDIR /usr/src/apppython1 + +# Installing python depedencies +COPY requirement.txt /usr/src/apppython1 +RUN pip install --no-cache-dir -r requirement.txt + +# Copying src code to container +COPY . /usr/src/apppython1 + +# Application Environment variables +#ENV APP_ENV development +ENV port 8080 + +# Exposing Ports +EXPOSE $PORT + +# Setting persistent data +VOLUME ["/apppython1-data"] + +# Running Python Application +CMD gunicorn -b :$PORT -c gunicorn.conf.py main:apppython1 From d3a69a77c3a272f32f7f8c9dadcbaa87a89c8da6 Mon Sep 17 00:00:00 2001 From: somasekharab Date: Sat, 8 Apr 2023 13:28:01 +0000 Subject: [PATCH 3/3] cokks --- Dockerfile1 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile1 diff --git a/Dockerfile1 b/Dockerfile1 new file mode 100644 index 0000000..f65df07 --- /dev/null +++ b/Dockerfile1 @@ -0,0 +1,27 @@ +FROM python:3.11 + +# Creating Application Source Code Directory +RUN mkdir -p /usr/src/app + +# Setting Home Directory for containers +WORKDIR /usr/src/app + +# Installing python dependencies +COPY requirements.txt /usr/src/app/ +RUN pip install --no-cache-dir -r requirements.txt + +# Copying src code to Container +COPY . /usr/src/app + +# Application Environment variables +#ENV APP_ENV development +ENV PORT 8080 + +# Exposing Ports +EXPOSE $PORT + +# Setting Persistent data +VOLUME ["/app-data"] + +# Running Python Application +CMD gunicorn -b :$PORT -c gunicorn.conf.py main:app