From e01205cdbe7ec49e92544c5272e784c71eb5cfde Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 8 Dec 2023 16:25:28 -0300 Subject: [PATCH] downloader: acelerar build containerfile --- downloader/Containerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/downloader/Containerfile b/downloader/Containerfile index 1cf26ce..75fc1b6 100644 --- a/downloader/Containerfile +++ b/downloader/Containerfile @@ -1,13 +1,13 @@ FROM docker.io/alpine:3.18 as build -RUN apk add --no-cache npm -RUN npm install -g esbuild pnpm +RUN apk add --no-cache npm \ + && npm install -g esbuild pnpm COPY .. /tmp/build/ WORKDIR /tmp/build/downloader -RUN pnpm install -RUN esbuild --bundle --format=cjs --platform=node --outfile=download_json.build.js --sourcemap=inline download_json.js -RUN esbuild --bundle --format=cjs --platform=node --outfile=generate_dump_metadata.build.js --sourcemap=inline generate_dump_metadata.js +RUN pnpm install \ + && esbuild --bundle --format=cjs --platform=node --outfile=download_json.build.js --sourcemap=inline download_json.js \ + && esbuild --bundle --format=cjs --platform=node --outfile=generate_dump_metadata.build.js --sourcemap=inline generate_dump_metadata.js FROM docker.io/alpine:3.18 RUN apk add --no-cache nodejs-current tini