mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 14:37:36 -07:00
1c4cde5235
* Dockerize Misskey * Add a new line at EOF * Add support Elasticsearch * / * Add setup document for docker * Add english document * Edit docs * docker -> Docker * Arrange format * Update docker.en.md * Modify title
28 lines
752 B
Docker
28 lines
752 B
Docker
FROM alpine:latest AS base
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
RUN apk add --no-cache nodejs nodejs-npm
|
|
RUN apk add vips fftw --update-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/
|
|
WORKDIR /misskey
|
|
COPY . ./
|
|
|
|
FROM base AS builder
|
|
|
|
RUN apk add --no-cache gcc g++ python autoconf automake file make nasm
|
|
RUN apk add vips-dev fftw-dev --update-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/
|
|
RUN npm install \
|
|
&& npm install -g node-gyp \
|
|
&& node-gyp configure \
|
|
&& node-gyp build \
|
|
&& npm run build
|
|
|
|
FROM base AS runner
|
|
|
|
COPY --from=builder /misskey/built ./built
|
|
COPY --from=builder /misskey/node_modules ./node_modules
|
|
|
|
RUN apk add --no-cache tini
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
|
|
CMD ["npm", "start"]
|