forked from MrMonkey42/stremio-addon-debrid-search
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (34 loc) · 999 Bytes
/
Dockerfile
File metadata and controls
42 lines (34 loc) · 999 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
# Use an official Node.js Alpine image
FROM node:20-alpine
# Set working directory inside container
WORKDIR /app
# Install git, build tools, and Chromium for Puppeteer stealth browser (BTDigg)
RUN apk add --no-cache \
git \
curl \
python3 \
make \
g++ \
sqlite \
sqlite-dev \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont
# Tell Puppeteer to skip downloading its own Chromium (incompatible with Alpine/musl)
# and use the system-installed one instead
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV CHROMIUM_PATH=/usr/bin/chromium-browser
# Copy only dependency files first (better layer caching)
COPY package*.json ./
COPY pnpm-lock.yaml ./
# Install pnpm and then dependencies
RUN npm install -g pnpm@9 && pnpm install --no-frozen-lockfile
# Copy rest of the project files
COPY . .
# Expose app port (keep whatever your app actually listens on)
EXPOSE 55771
# Start the dev / app server
CMD ["npm", "run", "start"]