Skip to content

Commit

Permalink
build: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Aug 30, 2024
1 parent a2b5438 commit 35deb50
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@ FROM python:3.9
ENV UV_SYSTEM_PYTHON=true
COPY --from=ghcr.io/astral-sh/uv:0.4.0 /uv /bin/uv

RUN apt-get update && apt-get install -y curl

# NVM and NPM are required for pyright
# 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

# Set the working directory to /app
WORKDIR /app
VOLUME psycop-common
Expand Down

0 comments on commit 35deb50

Please sign in to comment.