mirror of
https://github.com/sim1222/misskey.git
synced 2025-04-29 02:37:22 +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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user