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