Matheus Sampaio Queiroga
928456ede8
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
11 lines
656 B
Docker
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" ] |