Skip to content

Commit

Permalink
🔧 添加jemalloc相关环境配置
Browse files Browse the repository at this point in the history
  • Loading branch information
AzideCupric authored Oct 9, 2023
1 parent 8b73084 commit 22290c0
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 22290c0

Please sign in to comment.