Skip to content

Commit

Permalink
add misskey-js, reversi, bubble-game in yodangang dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
juunini committed Feb 16, 2024
1 parent 42095a4 commit 86f8198
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions YodangangExpress.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM juunini/misskey:builder-0.3 AS builder
FROM juunini/misskey:builder-0.5 AS builder

COPY . /misskey
WORKDIR /misskey
Expand All @@ -7,20 +7,20 @@ USER root
ENV NODE_ENV=production
ENV VITE_CLOUD_STORAGE_ORIGIN=https://storage.googleapis.com/yodangang-express/

RUN git submodule update --init
RUN corepack enable
RUN pnpm install
RUN pnpm build
RUN git submodule update --init &&\
corepack enable &&\
pnpm install &&\
pnpm build

FROM juunini/misskey:builder-0.3

RUN apt install -y tini
FROM juunini/misskey:builder-0.5

WORKDIR /misskey

RUN mkdir -p /misskey/packages/backend
RUN mkdir -p /misskey/packages/frontend
RUN mkdir -p /misskey/.config
RUN mkdir -p /misskey/packages/backend &&\
mkdir -p /misskey/packages/frontend &&\
mkdir -p /misskey/packages/misskey-js &&\
mkdir -p /misskey/packages/misskey-reversi &&\
mkdir -p /misskey/.config

COPY --from=builder /misskey/built /misskey/built
COPY --from=builder /misskey/package.json /misskey/package.json
Expand All @@ -34,8 +34,18 @@ COPY --from=builder /misskey/packages/backend/node_modules /misskey/packages/bac
COPY --from=builder /misskey/packages/backend/built /misskey/packages/backend/built
COPY --from=builder /misskey/packages/backend/assets /misskey/packages/backend/assets
COPY --from=builder /misskey/packages/frontend/assets /misskey/packages/frontend/assets
COPY --from=builder /misskey/packages/misskey-js/package.json /misskey/packages/misskey-js/package.json
COPY --from=builder /misskey/packages/misskey-js/built /misskey/packages/misskey-js/built
COPY --from=builder /misskey/packages/misskey-js/node_modules /misskey/packages/misskey-js/node_modules
COPY --from=builder /misskey/packages/misskey-reversi/package.json /misskey/packages/misskey-reversi/package.json
COPY --from=builder /misskey/packages/misskey-reversi/built /misskey/packages/misskey-reversi/built
COPY --from=builder /misskey/packages/misskey-reversi/node_modules /misskey/packages/misskey-reversi/node_modules
COPY --from=builder /misskey/packages/misskey-bubble-game/package.json /misskey/packages/misskey-bubble-game/package.json
COPY --from=builder /misskey/packages/misskey-bubble-game/built /misskey/packages/misskey-bubble-game/built
COPY --from=builder /misskey/packages/misskey-bubble-game/node_modules /misskey/packages/misskey-bubble-game/node_modules
COPY --from=builder /misskey/fluent-emojis /misskey/fluent-emojis

ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so
ENV NODE_ENV=production
HEALTHCHECK --interval=5s --retries=20 CMD ["/bin/bash", "/misskey/healthcheck.sh"]

Expand Down

0 comments on commit 86f8198

Please sign in to comment.