forked from GeorgeSG/KoInsight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 748 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 748 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
# Builder
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json .
COPY apps/server/package.json ./apps/server/package.json
COPY apps/web/package.json ./apps/web/package.json
COPY packages/common/package.json ./packages/common/package.json
RUN npm install
COPY turbo.json .
COPY apps ./apps
COPY packages ./packages
RUN npm run build
# Runner
FROM node:22-alpine AS runner
WORKDIR /app
RUN mkdir -p /app/data
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/apps/server/dist /app/apps/server/dist
COPY --from=builder /app/apps/web/dist /app/apps/web/dist
COPY plugins ./plugins
ENV NODE_ENV="production"
ENV DATA_PATH="/app/data"
ENV MAX_FILE_SIZE_MB="100"
CMD ["node", "./apps/server/dist/app.js"]