mirror of
https://github.com/sim1222/misskey.git
synced 2025-04-28 18:27:21 +09:00
update Dockerfile
This commit is contained in:
parent
a535076159
commit
bca8bff586
12
Dockerfile
12
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user