From b1b914324eeb13c6c72bbc5076b910fd5a06c200 Mon Sep 17 00:00:00 2001 From: Joshua Kuestersteffen Date: Wed, 31 Jul 2024 13:08:54 -0500 Subject: [PATCH] Update Dockerfile to be based on the Node 20 image --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6cb93ba83..9180db3c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-slim +FROM node:20-slim RUN apt update \ && apt install --no-install-recommends -y \ @@ -9,6 +9,7 @@ RUN apt update \ openssh-client \ python3-pip \ python3-setuptools \ + python3-venv \ python3-wheel \ xsltproc \ # Remove chromium to save space. We only installed it to get the transitive dependencies that are needed @@ -16,6 +17,10 @@ RUN apt update \ && apt remove -y chromium \ && rm -rf /var/lib/apt/lists/* +ENV VIRTUAL_ENV=/opt/venv +RUN python3 -m venv "$VIRTUAL_ENV" +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + RUN python3 -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic RUN npm install -g cht-conf