2025-07-08 13:10:09 +02:00
|
|
|
FROM node:lts-alpine
|
2021-12-03 15:04:26 +01:00
|
|
|
|
2025-07-08 13:10:09 +02:00
|
|
|
# Note: The docker container is run without network access
|
2022-01-10 14:06:13 +01:00
|
|
|
ENV NO_UPDATE_NOTIFIER=true
|
2021-10-18 13:48:52 +01:00
|
|
|
|
|
|
|
|
WORKDIR /opt/test-runner
|
|
|
|
|
COPY . .
|
2025-07-08 13:10:09 +02:00
|
|
|
RUN apk add --no-cache --virtual .build-deps git \
|
|
|
|
|
&& npm ci \
|
|
|
|
|
&& npm run build \
|
|
|
|
|
&& apk del .build-deps \
|
|
|
|
|
# Remove build time depencies
|
|
|
|
|
&& npm prune --omit dev \
|
|
|
|
|
# FIXME: These dependencies are required globally while they are included in package.json
|
|
|
|
|
&& npm install --global @abaplint/cli @abaplint/transpiler-cli @abaplint/runtime \
|
|
|
|
|
# Clean npm generated files
|
|
|
|
|
&& npm cache clean --force \
|
|
|
|
|
&& rm -rf /tmp/* /root/.npm
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/opt/test-runner/bin/run.sh"]
|