Skip to content
Open
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
2 changes: 0 additions & 2 deletions .docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ RUN apk add -U --no-cache \
if [ "${RAILS_ENV}" = "production" ]; then rm -rf tmp/*; fi && \
if [ "${RAILS_ENV}" = "production" ]; then apk del build-dependencies; fi && \
rm -rf /var/cache/apk/ && \
mkdir -p /secure-tmp && chmod 700 /secure-tmp && \
mkdir -p /secure-tmp/log && chmod 700 /secure-tmp/log && \
rails users:sync_initial

USER 65534:65534
Expand Down
5 changes: 5 additions & 0 deletions .docker/app/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -e

mkdir -p /secure-tmp
chmod 700 /secure-tmp
mkdir -p /secure-tmp/log
chmod 700 /secure-tmp/log

rails db:migrate 2>/dev/null || rails db:setup
rm -f /app/.internal_test_app/tmp/pids/server.pid

Expand Down
Loading