From 9d5f674c0449138d2abce5a46368f28854359ad0 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 28 Nov 2023 20:53:41 -0300 Subject: [PATCH] container: sourcemaps --- Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index a4c8885..575d6dd 100644 --- a/Containerfile +++ b/Containerfile @@ -8,7 +8,7 @@ COPY package.json . RUN npm install COPY download_json.js . -RUN esbuild --bundle --format=cjs --platform=node --outfile=build.js download_json.js +RUN esbuild --bundle --format=cjs --platform=node --outfile=build.js --sourcemap=inline download_json.js FROM docker.io/alpine:3.18 RUN apk add --no-cache nodejs-current tini @@ -16,4 +16,4 @@ COPY pki/ca_intermediate_root_bundle.pem /usr/lib/ca_intermediate_root_bundle.pe COPY --from=build /tmp/build/build.js /usr/local/bin/download_json.js ENV NODE_EXTRA_CA_CERTS=/usr/lib/ca_intermediate_root_bundle.pem WORKDIR /data -CMD ["/sbin/tini", "node", "/usr/local/bin/download_json.js"] +CMD ["/sbin/tini", "node", "--enable-source-maps", "/usr/local/bin/download_json.js"]