Closed xxdesmus closed 1 year ago
it's possible to run the CLI in a docker container but you would need to expose the target script to the container when deobfuscating it.
./Dockerfile
FROM node:lts-alpine
WORKDIR /usr/src
RUN corepack enable
RUN corepack prepare pnpm@8.6.6 --activate
RUN mkdir /usr/src/dist
ADD dist /usr/src/dist
ADD package.json /usr/src
ADD pnpm-lock.yaml /usr/src
RUN pnpm install --prod --frozen-lockfile
ENTRYPOINT ["node", "--enable-source-maps", "/usr/src/dist/cli.js"]
git clone git@github.com:relative/synchrony.git synchrony
cd synchrony
# # if you don't have PNPM already:
# corepack enable
# corepack prepare pnpm@8.6.6 --activate
pnpm install
pnpm build # output is dist/ dir
# this command expects the Dockerfile above to be in the current directory (repo root)
docker build -t synchrony --progress=plain .
# effectively a wrapper to the CLI script, you can pass whatever args you want to the container
docker run --interactive --tty --rm synchrony
I don't have the particular skillset to pull it off, but do you potentially have any plans to bundle this into a dockerfile (or docker compose ideally)?