From 8c6a2e58e228c8698cf134041c842a1c6dfb49dc Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 19 Aug 2024 23:06:00 +0700 Subject: [PATCH] Fix docker build order Signed-off-by: Andrey Sobolev --- pods/account/Dockerfile | 3 ++- pods/server/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pods/account/Dockerfile b/pods/account/Dockerfile index 81527977b8..0879745fff 100644 --- a/pods/account/Dockerfile +++ b/pods/account/Dockerfile @@ -2,7 +2,6 @@ FROM node:20 WORKDIR /usr/src/app -COPY bundle/bundle.js ./ RUN npm install --ignore-scripts=false --verbose bufferutil utf-8-validate @mongodb-js/zstd snappy --unsafe-perm RUN apt-get update @@ -11,5 +10,7 @@ RUN apt-get install libjemalloc2 ENV LD_PRELOAD=libjemalloc.so.2 ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true +COPY bundle/bundle.js ./ + EXPOSE 3000 CMD [ "node", "bundle.js" ] diff --git a/pods/server/Dockerfile b/pods/server/Dockerfile index 131165a014..cf070ffebe 100644 --- a/pods/server/Dockerfile +++ b/pods/server/Dockerfile @@ -10,9 +10,9 @@ RUN apt-get install libjemalloc2 ENV LD_PRELOAD=libjemalloc.so.2 ENV MALLOC_CONF=dirty_decay_ms:1000,narenas:2,background_thread:true +RUN mv node_modules/uWebSockets.js/*.node . COPY bundle/bundle.js ./ COPY bundle/bundle.js.map ./ -RUN mv node_modules/uWebSockets.js/*.node . EXPOSE 8080 ENV UWS_HTTP_MAX_HEADERS_SIZE 32768