Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update Dockerfile to be based on the Node 20 image #630

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-slim
FROM node:20-slim

RUN apt update \
&& apt install --no-install-recommends -y \
Expand All @@ -9,13 +9,18 @@ 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
# when running tests with puppeteer. (puppeteer-chromium-resolver will always download its own version of chromium)
&& 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/[email protected]#egg=pyxform-medic

RUN npm install -g cht-conf
Expand Down