Skip to content

Commit d46343c

Browse files
committed
unprocessed static file cleanup
1 parent 098ca87 commit d46343c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ run_prod.sh
1111
import_posts.py
1212
.env
1313
README.md
14-
.gitignore
14+
.gitignore
15+
add_committee_history.py

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ staticfiles
66
*.env
77
import_posts.py
88
setup_db.py
9-
stuff.txt
9+
stuff.txt
10+
add_committee_history.py

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ ENV PYTHONUNBUFFERED 1
66
WORKDIR /app
77

88
COPY requirements.txt /app/
9-
RUN pip install --no-cache-dir -r requirements.txt
9+
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
1010

1111
COPY . /app/
1212

1313
RUN python manage.py collectstatic -v 3 --noinput
1414

15+
RUN rm -rf /app/static
16+
RUN rm -rf /app/requirements.txt
17+
1518
EXPOSE 8000
1619

1720
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]

0 commit comments

Comments
 (0)