Skip to content

Commit a02756a

Browse files
committed
database
1 parent f584219 commit a02756a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ WORKDIR /code
88
COPY requirements.txt /code/
99

1010
RUN pip3 install -r requirements.txt
11+
RUN /bin/sh -c python manage.py makemigrations blog
12+
RUN /bin/sh -c python manage.py sqlmigrate blog 0001
13+
RUN /bin/sh -c python manage.py migrate;
1114
RUN apt-get update && apt-get install iputils-ping -y
1215

1316
COPY . /code/

db.sqlite3

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)