This repository has been archived on 2024-07-06. You can view files and clone it, but cannot push or open issues or pull requests.
rebory/test.Dockerfile
Matheus Sampaio Queiroga 928456ede8
Some checks failed
Test / test_cross (18.x) (push) Failing after 8m8s
Test / test_cross (19.x) (push) Failing after 8m16s
Test / test_cross (20.x) (push) Failing after 8m35s
Test / test_cross (21.x) (push) Failing after 8m35s
Update to targets
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2024-03-19 23:46:16 -03:00

11 lines
656 B
Docker

FROM node:latest
RUN apt update && DEBIAN_FRONTEND="noninteractive" apt install -y xz-utils wget jq clang build-essential crossbuild-essential*
RUN tarURL=$(curl https://ziglang.org/download/index.json | jq -r .\[\"0.11.0\"\]\[\"$(uname -m)-linux\"\].tarball); wget -qO- "${tarURL}" | tar -xvJ -C /usr/local/ && \
mv -v /usr/local/zig* /usr/local/zig && \
ln -s /usr/local/zig/zig /usr/bin/zig
WORKDIR /app
COPY ./package.json ./
COPY ./test/package.json ./test/
RUN npm install --no-save && cd test && npm install --no-save --ignore-scripts
COPY ./ ./
ENTRYPOINT [ "node", "--no-warnings", "--loader", "ts-node/esm", "src/bin/index.ts", "-w", "test" ]