diff --git a/Dockerfile b/Dockerfile index 264e6a3..77dd118 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,14 @@ FROM algolia/docsearch-scraper:latest + LABEL maintainer="t@sparanoid.com" +# Get rid of /github/home +# https://stackoverflow.com/a/63144407/412385 +ENV WORKON_HOME /root +ENV PIPENV_PIPFILE /root/Pipfile + +RUN pipenv install + COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 3773496..a76acae 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,8 +1,11 @@ #!/bin/sh # https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions +cd /root + +ls -lah +ls -lah src + # `$*` expands the `args` supplied in an `array` individually # or splits `args` in a string separated by whitespace. -sh -c "ls -lah" -sh -c "ls -lah src" sh -c "pipenv run python -m src.index $*"