-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (37 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
45 lines (37 loc) · 1.02 KB
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
45
# Use the official Remotion image to ensure all rendering dependencies are present
# If we only needed the API, node:18-bullseye-slim would suffice, but using this
# allows us to run renders on the server in the future.
FROM node:22-bullseye-slim
WORKDIR /app
# Install OpenSSL and dependencies for Remotion/Puppeteer
RUN apt-get update && apt-get install -y \
openssl \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libdrm2 \
libxkbcommon0 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libasound2 \
libpango-1.0-0 \
libcairo2 \
&& rm -rf /var/lib/apt/lists/*
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy the rest of the application code
COPY . .
# Generate Prisma Client
RUN npx prisma generate
# Expose the API port and Studio port
EXPOSE 3002
EXPOSE 3000
# Start the server (push schema first, then run both studio and server)
CMD ["sh", "-c", "npx prisma db push && npm start"]