fedired-backend/Dockerfile

22 lines
1014 B
Docker
Raw Normal View History

2024-11-08 14:11:56 +00:00
FROM node:22-bookworm-slim as build
RUN apt update && apt install -y git && apt clean
RUN git clone -n --depth=1 --filter=tree:0 https://github.com/misskey-dev/misskey && \
cd misskey && \
git sparse-checkout set --no-cone packages/backend packages/misskey-js packages/misskey-reversi packages/meta.json .config/ && \
git checkout
2024-11-10 02:26:28 +00:00
RUN yarn config set network-timeout 300000 && \
cd /misskey/packages/misskey-reversi && yarn --dev && yarn build && \
2024-11-08 14:11:56 +00:00
cd ../misskey-js && yarn --dev && yarn build && \
2024-11-08 15:13:47 +00:00
cd ../backend && yarn add ../misskey-reversi ../misskey-js && yarn --dev && yarn build
2024-11-08 14:11:56 +00:00
FROM node:22-bookworm-slim
COPY --from=build --chown=node:node /misskey/.config /.config
COPY --from=build --chown=node:node /misskey/packages/meta.json /built/meta.json
COPY --from=build --chown=node:node /misskey/packages/backend /fedired/backend
USER node
2024-11-08 15:13:47 +00:00
COPY ./default.yml /.config/default.yml
2024-11-08 14:11:56 +00:00
WORKDIR /fedired/backend
2024-11-08 15:13:47 +00:00
COPY ./entrypoint.sh .
EXPOSE 3000
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]