Skip to content

Commit 007371a

Browse files
committed
Containerfile: collect static assets for serving
1 parent 7dc53d6 commit 007371a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Containerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ COPY gunicorn.py /opt/netbox/gunicorn.py
2525
WORKDIR /opt/netbox
2626

2727
# Adapted from upgrade.sh
28+
RUN python3 netbox/manage.py collectstatic --no-input
29+
# These shouldn't be run by us:
2830
# RUN python3 netbox/manage.py migrate
2931
# RUN python3 netbox/manage.py trace_paths --no-input
30-
# RUN python3 netbox/manage.py collectstatic --no-input
3132
# RUN python3 netbox/manage.py remove_stale_contenttypes --no-input
3233
# RUN python3 netbox/manage.py clearsessions
3334

0 commit comments

Comments
 (0)