diff --git a/.dockerignore b/.dockerignore index 37cc7d51..0f93cd54 100644 --- a/.dockerignore +++ b/.dockerignore @@ -33,3 +33,6 @@ !storage/.keep !tmp/.keep !vendor/ + +# scripts +!scripts/load_secrets_and_run.sh diff --git a/Dockerfile b/Dockerfile index c9e1170f..8ecb6562 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,8 +76,6 @@ RUN apk update && apk --no-cache --quiet add --update \ COPY --chown=deploy:deploy --from=builder /app . # copy gems COPY --chown=deploy:deploy --from=builder /usr/local/bundle /usr/local/bundle -# copy scripts -COPY --chown=deploy:deploy --from=builder /app/scripts/load_secrets_and_run.sh load_secrets_and_run.sh # Create directories for Puma/Nginx & give deploy user access RUN mkdir -p /shared/pids /shared/sockets && \ @@ -92,5 +90,5 @@ RUN rm -rf node_modules USER deploy -ENTRYPOINT ["/usr/bin/dumb-init", "./load_secrets_and_run.sh"] +ENTRYPOINT ["/usr/bin/dumb-init", "./scripts/load_secrets_and_run.sh"] CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]