We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab86e28 commit 4e6240aCopy full SHA for 4e6240a
Dockerfile
@@ -13,9 +13,6 @@ ENV HOME=/
13
RUN mkdir /static
14
WORKDIR $HOME
15
16
-# collect static files
17
-RUN /bin/bash -c "python manage.py collectstatic --noinput"
18
-
19
# install dependencies
20
RUN pip install --upgrade pip
21
RUN pip install psycopg2
@@ -25,4 +22,6 @@ RUN pip install -r requirements.txt
25
22
# copy project
26
23
COPY . /
27
24
+# collect static files
+RUN bash -c "docker-compose -f docker-compose.prod.yml exec web python manage.py collectstatic --no-input --clear"
28
0 commit comments