-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
34 lines (27 loc) · 996 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:20-slim
RUN apt update \
&& apt install --no-install-recommends -y \
build-essential \
chromium \
curl \
git \
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
# Using the 1000:1000 user is recommended for VSCode dev containers
# https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
USER node
WORKDIR /workdir
ENTRYPOINT ["cht"]