forked from whatwg/build.whatwg.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 734 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (18 loc) · 734 Bytes
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
FROM node:24.4.1-bookworm-slim
RUN apt-get update && \
apt-get install --yes --no-install-recommends \
ca-certificates curl p7zip-full python3 python3-pip pipx && \
rm -rf /var/lib/apt/lists/*
ENV PIPX_HOME /opt/pipx
ENV PIPX_BIN_DIR /usr/bin
RUN pipx install bs-highlighter
COPY --from=ghcr.io/whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
WORKDIR /app
COPY --from=ghcr.io/whatwg/html-build:latest /whatwg/html-build/build.sh /whatwg/html-build/lint.sh ./
COPY --from=ghcr.io/whatwg/html-build:latest /bin/html-build /bin/
COPY --from=ghcr.io/whatwg/html-build:latest /whatwg/html-build/entities ./entities/
COPY . .
RUN npm install --omit=dev
ENV PORT=3000
EXPOSE $PORT
ENTRYPOINT ["npm", "start"]