forked from misskey-dev/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (32 loc) · 640 Bytes
/
Dockerfile
File metadata and controls
42 lines (32 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM node:12.11.1-alpine AS base
ENV NODE_ENV=production
RUN npm i -g npm@latest
WORKDIR /dolphin
FROM base AS builder
RUN apk add --no-cache \
autoconf \
automake \
file \
g++ \
gcc \
libc-dev \
libtool \
make \
nasm \
pkgconfig \
python \
zlib-dev
COPY package.json ./
RUN yarn install
COPY . ./
RUN yarn build
FROM base AS runner
RUN apk add --no-cache \
ffmpeg \
tini
RUN npm i -g web-push
ENTRYPOINT ["/sbin/tini", "--"]
COPY --from=builder /dolphin/node_modules ./node_modules
COPY --from=builder /dolphin/built ./built
COPY . ./
CMD ["npm", "run", "migrateandstart"]