Skip to content

Commit

Permalink
Merge pull request #168 from Enraged-Dun-Cookie-Development-Team/feat…
Browse files Browse the repository at this point in the history
…/jemalloc-env

🔧 添加jemalloc运行时相关环境配置
  • Loading branch information
Goodjooy authored Oct 21, 2023
2 parents fe9191d + 22290c0 commit d47c39c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt update && apt-get --no-install-recommends install -y ca-certificates
WORKDIR /var/canteen-server
COPY --from=builder /app/target/release/server /usr/local/bin/canteen-server
ENV JEMALLOC_SYS_WITH_MALLOC_CONF=background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,abort_conf:true
CMD ["sh", "-c", "canteen-server"]

0 comments on commit d47c39c

Please sign in to comment.