diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7a0da240489..28a26880c76 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -25,5 +25,5 @@ }, "workspaceFolder": "/workspaces/accelerate", // Need git for VSCode to color code modifications. Only runs when building environment. - "onCreateCommand": "apt-get update && apt-get install -y git && pip install -e '.[dev]'" + "onCreateCommand": "apt-get update && apt-get install -y git make && pip install -e '.[dev]'" } \ No newline at end of file diff --git a/docker/accelerate-cpu/Dockerfile b/docker/accelerate-cpu/Dockerfile index 663abf63e96..98aeff6994e 100644 --- a/docker/accelerate-cpu/Dockerfile +++ b/docker/accelerate-cpu/Dockerfile @@ -28,8 +28,9 @@ RUN python3 -m pip install --no-cache-dir \ FROM python:3.9-slim AS build-image COPY --from=compile-image /opt/venv /opt/venv RUN useradd -ms /bin/bash user +RUN echo "user ALL=(ALL) NOPASSWD: /usr/bin/apt-get, /usr/bin/pip" >> /etc/sudoers USER user # Make sure we use the virtualenv ENV PATH="/opt/venv/bin:$PATH" -CMD ["/bin/bash"] \ No newline at end of file +CMD ["/bin/bash"]