Skip to content

Commit 4e6240a

Browse files
committed
website is live, testing command to collect static during pipeline build
1 parent ab86e28 commit 4e6240a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ ENV HOME=/
1313
RUN mkdir /static
1414
WORKDIR $HOME
1515

16-
# collect static files
17-
RUN /bin/bash -c "python manage.py collectstatic --noinput"
18-
1916
# install dependencies
2017
RUN pip install --upgrade pip
2118
RUN pip install psycopg2
@@ -25,4 +22,6 @@ RUN pip install -r requirements.txt
2522
# copy project
2623
COPY . /
2724

25+
# collect static files
26+
RUN bash -c "docker-compose -f docker-compose.prod.yml exec web python manage.py collectstatic --no-input --clear"
2827

0 commit comments

Comments
 (0)