Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FROM node:16.20.2-bullseye-slim AS runner
WORKDIR /misskey

RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg mecab mecab-ipadic-utf8 tini \
&& apt-get install -y --no-install-recommends libjemalloc2 ffmpeg mecab mecab-ipadic-utf8 tini \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& corepack enable pnpm
Expand All @@ -30,6 +30,7 @@ COPY --from=builder /misskey/node_modules ./node_modules
COPY --from=builder /misskey/built ./built
COPY . ./

ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
ENV NODE_ENV=production
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["pnpm", "start"]