-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile.local
More file actions
30 lines (20 loc) · 615 Bytes
/
Dockerfile.local
File metadata and controls
30 lines (20 loc) · 615 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
FROM node:24-alpine AS builder
ARG NPM_REGISTRY=https://registry.npmjs.org/
WORKDIR /app
RUN npm config set registry ${NPM_REGISTRY} && npm install -g pnpm@10.7.1
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY tsconfig.json ./
COPY src ./src
RUN pnpm exec tsc --build
FROM node:24-alpine AS runner
ENV NODE_ENV=production
ENV CONTAINERIZED=1
ENV CONTAINER_FILE_PATH=/mnt/host-downloads
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules/
COPY --from=builder /app/dist ./dist/
COPY package.json ./
EXPOSE 3000
ENTRYPOINT ["node", "./dist/cli.js"]
CMD ["--help"]