-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
44 lines (29 loc) · 917 Bytes
/
Dockerfile
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
43
44
FROM node:21-slim as video
WORKDIR /app
COPY ./remotion/ .
RUN npm install
RUN npm run bundle
FROM node:21-slim as server
WORKDIR /app
RUN apt update
RUN npm --no-update-notifier --no-fund --global install pnpm
COPY . .
RUN pnpm install
RUN pnpm build
FROM node:21-slim
WORKDIR /app
RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3
RUN npm install -g node-gyp
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN apt-get install -y chromium
# Copy API
COPY --from=server /app/apps/api/package.json .
COPY --from=server /app/apps/api/dist/ .
COPY --from=server /app/apps/api/prisma/ .
# Copy UI
COPY --from=server /app/apps/ui/dist/ ./public
# Copy Remotion
COPY --from=video /app/dist/ ./video
RUN yarn install
ENV NODE_ENV=production
CMD ["yarn", "start"]