diff --git a/Dockerfile b/Dockerfile index d9c23f3..a206c66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,5 +5,12 @@ FROM algolia/docsearch-scraper # `docker run` ENV WORKON_HOME /root +# Tells pipenv to use this specific Pipfile rather than the Pipfile in the +# current working directory (the working directory changes between `docker build` +# and `docker run`, this ensures we always use the same Pipfile) +ENV PIPENV_PIPFILE /root/Pipfile + +RUN pipenv install --python 3.6 + COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 6af67ec..9542a04 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,8 +1,5 @@ #!/bin/bash -cd /root -ls ./ - pipenv run python --version pipenv run pip freeze