Skip to content

Commit 084bc22

Browse files
committed
include templates and media for demo
1 parent a3faffb commit 084bc22

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

Dockerfile

+9-7
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ ENV DEMO_DB_NAME /db.sqlite3
55
RUN mkdir -p /app
66
WORKDIR /app
77

8-
RUN pip install pillow
8+
RUN pip install \
9+
pillow \
10+
"Django<4.0" \
11+
choice-enum==1.0.0 \
12+
"django-bootstrap3>=12.0.1" \
13+
"python-dateutil>=2.8.1" \
14+
django_extensions
915

1016
COPY . .
11-
RUN pip install django_extensions && \
12-
pip install -e . && \
13-
pip install -e demo
14-
15-
RUN demo migrate --no-input && \
17+
RUN pip install . demo/ && \
18+
demo migrate --no-input && \
1619
demo loaddata demo/demo/fixtures/users.json && \
1720
demo loaddata demo/demo/fixtures/picker.json && \
1821
demo import_picks tests/nfl2019.json
1922

20-
2123
EXPOSE 80
2224
RUN echo Load at http://localhost:8080
2325
CMD ["demo", "runserver", "0:80"]

MANIFEST.in

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include README.rst
2+
include LICENSE
3+
include MANIFEST.in
4+
recursive-include picker/templates/ *

demo/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include demo/ *

0 commit comments

Comments
 (0)