From eed3880f388fc4da587eb6e5583eadf407fde020 Mon Sep 17 00:00:00 2001 From: Marcel Kornblum Date: Tue, 28 Mar 2023 17:34:12 +0100 Subject: [PATCH] Fix dockerfile to default to latest node (#344) --- Dockerfile | 9 ++++----- test.dockerfile | 3 --- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac8802f61..66409cff6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,7 @@ ENV PYTHONSTARTUP=.pythonrc.py ENV POETRY_VIRTUALENVS_CREATE=false # Install Python & Node -RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \ - apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update && apt-get install -y --no-install-recommends \ # Install general packages git nano \ curl wget gpg \ @@ -22,10 +21,10 @@ RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \ # Install python and supporting packages python${PYTHON_VERSION} \ python${PYTHON_VERSION}-dev \ - python3-pip \ + python3-pip && \ # Install Node - nodejs \ - npm && \ + curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \ + apt-get install -y --no-install-recommends nodejs && \ # Setup python symlinks rm -rf /usr/bin/python3 && \ ln -s /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 && \ diff --git a/test.dockerfile b/test.dockerfile index 3b3a98312..5a3cdbd6b 100644 --- a/test.dockerfile +++ b/test.dockerfile @@ -8,6 +8,3 @@ RUN poetry run playwright install-deps RUN poetry run playwright install COPY . ./ -RUN cp .env.ci .env - -RUN npm ci && npm run build