Skip to content

Commit

Permalink
Merge pull request #1487 from NASA-AMMOS/refactor/sequencing-server-a…
Browse files Browse the repository at this point in the history
…llocator

Using a libjemalloc Allocator for Better Memory Management
  • Loading branch information
goetzrrGit authored Jun 26, 2024
2 parents 8961c8e + 4a58a84 commit dd27d6a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sequencing-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM node:18.13.0-alpine
FROM node:18.20-bookworm-slim

# Install jemalloc
RUN apt-get update \
&& apt-get install --no-install-recommends -y libjemalloc-dev

# Set the path for jemalloc
RUN echo "/usr/lib/$(uname -m)-linux-gnu/libjemalloc.so" >> /etc/ld.so.preload

# Set working directory
COPY . /app
WORKDIR /app
CMD [ "npm", "start" ]

0 comments on commit dd27d6a

Please sign in to comment.