Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ db.sqlite3
var/
staticfiles/
backups/
local-deploy-backups/
Caddyfile.with-goggles
caddy-with-goggles.json

# Local deployment secrets stay outside the repo/build context.
goggles-secrets.txt
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ COPY . .
# non-root user. collectstatic writes to STATIC_ROOT (/app/staticfiles), so only
# that runtime-writable directory is owned by the application user.
RUN useradd --system --uid 10001 --no-create-home goggles \
&& mkdir -p /home/goggles \
&& chown goggles:goggles /home/goggles \
&& mkdir -p /app/staticfiles \
&& chown goggles:goggles /app/staticfiles
USER goggles
Expand Down