Skip to content

feat: zip static files - #2422

Open
alicecoordinator wants to merge 3 commits into
RoboSats:mainfrom
alicecoordinator:zip-static-files
Open

feat: zip static files#2422
alicecoordinator wants to merge 3 commits into
RoboSats:mainfrom
alicecoordinator:zip-static-files

Conversation

@alicecoordinator

@alicecoordinator alicecoordinator commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

With these changes, the static files will be collected and gzipped during the docker image build. It will not be needed then to copy the static files over to a separate folder.

Changes to robosats-deploy will also be made, so that the nginx image can serve the gzipped files.

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.

With these changes, the static files will be collected and gzipped
during the docker image build. It will not be needed then to copy the
static files over to a separate folder.

Changes to robosats-deploy will also be made, so that the nginx image
can serve the gzipped files.
@alicecoordinator

Copy link
Copy Markdown
Contributor Author

Changes to robosats-deploy: RoboSats/robosats-deploy#40

@KoalaSat
KoalaSat requested a review from a team as a code owner August 21, 2026 08:23
@KoalaSat

Copy link
Copy Markdown
Member

@alicecoordinator The docker build failed:

2026-08-21T08:32:15.8218352Z --------------------
2026-08-21T08:32:15.8218574Z 
2026-08-21T08:32:15.8218712Z   34 |     
2026-08-21T08:32:15.8218882Z 
2026-08-21T08:32:15.8219031Z   35 | >>> RUN cp .env-sample .env \
2026-08-21T08:32:15.8219314Z 
2026-08-21T08:32:15.8219559Z   36 | >>>     && python manage.py collectstatic --noinput --clear \
2026-08-21T08:32:15.8219958Z 
2026-08-21T08:32:15.8220112Z   37 | >>>     && rm .env-sample .env \
2026-08-21T08:32:15.8220387Z 
2026-08-21T08:32:15.8220639Z   38 | >>>     && find /usr/src/static -type f -exec gzip -9 --keep {} +
2026-08-21T08:32:15.8221028Z 
2026-08-21T08:32:15.8221152Z   39 |     
2026-08-21T08:32:15.8221323Z 
2026-08-21T08:32:15.8221446Z --------------------
2026-08-21T08:32:15.8221646Z 
2026-08-21T08:32:15.8223176Z failed to solve: process "/bin/sh -c cp .env-sample .env     && python manage.py collectstatic --noinput --clear     && rm .env-sample .env     && find /usr/src/static -type f -exec gzip -9 --keep {} +" did not complete successfully: exit code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants