Skip to content

Commit eae18eb

Browse files
Merge pull request #1 from Pal-Sandeep/Pal-Sandeep-patch-1
Added Dockerfile
2 parents 1b36ad3 + b06b0e6 commit eae18eb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# base image
2+
FROM python:3.8
3+
ENV PYTHONUNBUFFERED 1
4+
5+
WORKDIR /app
6+
7+
ADD . /app
8+
9+
COPY . /app
10+
11+
COPY ./requirements.txt /app/requirements.txt
12+
13+
RUN pip install -r requirements.txt
14+
15+
RUN python manage.py makemigrations
16+
17+
RUN python manage.py migrate
18+
19+
EXPOSE 8000
20+
21+
CMD python manage.py runserver 0.0.0.0:8000

0 commit comments

Comments
 (0)