From 77bb9c27f468e213a39d32c1b3799af26391dfbe Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Tue, 6 Jul 2021 05:17:38 -0400 Subject: [PATCH] chore: try /root as base dir --- Dockerfile | 8 ++++++++ entrypoint.sh | 7 +++++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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 $*"