Skip to content

Commit

Permalink
dev: simplify dockerfile (#352)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
MartinBernstorff authored Nov 6, 2023
1 parent 587ee6c commit 9506ed5
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9506ed5

Please sign in to comment.