Skip to content
Snippets Groups Projects
Dockerfile 653 B
Newer Older
syuilo's avatar
syuilo committed
FROM node:16.6.2-alpine3.13 AS base

ENV NODE_ENV=production

WORKDIR /misskey

FROM base AS builder

RUN apk add --no-cache \
    autoconf \
    automake \
    file \
    g++ \
    gcc \
    libc-dev \
    libtool \
    python3 \
    zlib-dev \
    vips-dev \
    vips
syuilo's avatar
syuilo committed
COPY package.json yarn.lock .yarnrc ./

FROM base AS runner

    tini \
    vips

ENTRYPOINT ["/sbin/tini", "--"]

COPY --from=builder /misskey/node_modules ./node_modules
COPY --from=builder /misskey/built ./built
COPY . ./

syuilo's avatar
syuilo committed
CMD ["npm", "run", "migrateandstart"]