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