Skip to content

Commit 3c8161e

Browse files
author
Ubuntu
committed
added docker
0 parents  commit 3c8161e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Pulling base image
2+
FROM python:3.9
3+
4+
# working directory to run stuff
5+
WORKDIR /devops
6+
7+
RUN apt-get update -y && apt-get install git -y
8+
9+
# Get the project source code
10+
RUN git clone https://github.com/LondheShubham153/django-notes-app.git
11+
12+
13+
# install required packages
14+
RUN pip install -r django-notes-app/requirements.txt
15+
16+
# exposing the port where app runs
17+
EXPOSE 8080
18+
19+
# Run the app
20+
CMD ["python","django-notes-app/manage.py","runserver","0.0.0.0:8080"]

0 commit comments

Comments
 (0)