Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sekpython #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:2.7
FROM python:3.11

# Creating Application Source Code Directory
RUN mkdir -p /usr/src/app
Expand Down
27 changes: 27 additions & 0 deletions Dockerfile1
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions apppython/Dockerfile2
Original file line number Diff line number Diff line change
@@ -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