Skip to content
Snippets Groups Projects
Dockerfile 633 B
Newer Older
MeiMei's avatar
MeiMei committed
FROM node:14.15.1-alpine 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 \
    python \
COPY package.json yarn.lock ./

FROM base AS runner

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"]