diff --git a/Dockerfile b/Dockerfile index 01814c2e..fdcf0587 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,20 +51,18 @@ RUN pyenv install 3.10 FROM pyenv as py311 RUN pyenv install 3.11 -# =================================================================== -FROM base as pants -RUN curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash - # =================================================================== FROM pyenv as shell -ENV PATH="${PATH}:/home/dev/bin" + +RUN curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash +RUN <> ~/.bashrc +EOT # the pants installer puts things in ~/cache/nce and it needs to be persistent RUN mkdir -p .cache && chown dev:dev .cache -COPY --from=pants /home/dev/bin ./bin - # these are all separate stages to make them build in parallel COPY --from=py38 /home/dev/.pyenv/versions ./.pyenv/versions/ COPY --from=py39 /home/dev/.pyenv/versions ./.pyenv/versions/ @@ -72,4 +70,4 @@ COPY --from=py310 /home/dev/.pyenv/versions ./.pyenv/versions/ COPY --from=py311 /home/dev/.pyenv/versions ./.pyenv/versions/ VOLUME /home/dev/.cache -WORKDIR /home/dev/src \ No newline at end of file +WORKDIR /home/dev/src diff --git a/README.md b/README.md index 07250d7e..6bf3b24c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ To perform a release, run: #### Use the docker-compose container (recommended) +- You'll need to make sure other users (the docker container user), can write to the repo root directory. Run `chmod o+w .` - Run `docker compose run --rm shell bash` to get a clean sandbox environment #### Use on your host system