From 9506ed5bef62d897d0b49a1e6c5077a489353b6e Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Mon, 6 Nov 2023 10:58:27 +0100 Subject: [PATCH] dev: simplify dockerfile (#352) * ci: simplify tests * dev: disable pre-commit by default on dev container * ci: remove dev container action, since used in tests * dev: do not run pre-commit on postcreate * ci: simplify dockerfile --- Dockerfile | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03c7c4677..bdce375a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,22 +2,6 @@ FROM python:3.10 RUN apt-get update && apt-get install -y curl -# Install nvm -# Explicitly set HOME environment variable -ENV NVM_DIR=$HOME/.nvm -RUN mkdir -p $NVM_DIR -ENV NODE_VERSION=18.2.0 - -# Install nvm with node and npm -RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \ - && . $NVM_DIR/nvm.sh \ - && nvm install $NODE_VERSION \ - && nvm alias default $NODE_VERSION \ - && nvm use default - -ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules -ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH - # Install dev tools COPY test-requirements.txt . RUN pip install -r test-requirements.txt @@ -31,8 +15,6 @@ RUN pip install -r gpu-requirements.txt COPY requirements.txt . RUN pip install -r requirements.txt -RUN npm install -g @withgraphite/graphite-cli@stable - # Set the working directory to /app WORKDIR /app VOLUME psycop-common