diff --git a/.docker/app/Dockerfile b/.docker/app/Dockerfile index 933f9c1..a7f0731 100644 --- a/.docker/app/Dockerfile +++ b/.docker/app/Dockerfile @@ -51,8 +51,7 @@ RUN apk add -U --no-cache \ 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 + mkdir -p /secure-tmp/log && chmod 700 /secure-tmp/log USER 65534:65534 diff --git a/.docker/app/entrypoint.sh b/.docker/app/entrypoint.sh index 4d5671b..7101253 100755 --- a/.docker/app/entrypoint.sh +++ b/.docker/app/entrypoint.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash set -e -rails db:migrate 2>/dev/null || rails db:setup +rails db:prepare +rails users:sync_initial rm -f /app/.internal_test_app/tmp/pids/server.pid exec "$@"