diff --git a/Dockerfile b/Dockerfile index d74bc07e..9368d8b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -120,6 +120,10 @@ ENV UWSGI_STATIC_MAP="/static/=/code/static/" UWSGI_STATIC_EXPIRES_URI="/static/ # Change to a non-root user USER ${APP_USER}:${APP_USER} +# Enable heroku exec https://devcenter.heroku.com/articles/exec#using-with-docker +RUN echo '[ -z "$SSH_CLIENT" ] && source <(curl --fail --retry 3 -sSL "$HEROKU_EXEC_URL")' > /app/.profile.d +RUN rm /bin/sh && ln -s /bin/bash /bin/sh + # Uncomment after creating your docker-entrypoint.sh ENTRYPOINT ["/code/docker-entrypoint.sh"]