update Dockerfile

This commit is contained in:
sim1222 2024-10-14 13:49:34 +09:00
parent a535076159
commit bca8bff586
Signed by: sim1222
GPG Key ID: D1AE30E316E44E5D

View File

@ -1,4 +1,4 @@
FROM node:16.15.1-bullseye AS builder FROM node:20-bookworm AS builder
ARG NODE_ENV=production ARG NODE_ENV=production
@ -6,19 +6,19 @@ WORKDIR /misskey
COPY . ./ COPY . ./
RUN apt-get update RUN apt update
RUN apt-get install -y build-essential RUN apt install -y build-essential
RUN git submodule update --init RUN git submodule update --init
RUN yarn install RUN yarn install
RUN yarn build RUN yarn build
RUN rm -rf .git RUN rm -rf .git
FROM node:16.15.1-bullseye-slim AS runner FROM node:20-bookworm-slim AS runner
WORKDIR /misskey WORKDIR /misskey
RUN apt-get update RUN apt update
RUN apt-get install -y ffmpeg tini RUN apt install -y ffmpeg tini
COPY --from=builder /misskey/node_modules ./node_modules COPY --from=builder /misskey/node_modules ./node_modules
COPY --from=builder /misskey/built ./built COPY --from=builder /misskey/built ./built