Spaces:
Sleeping
Sleeping
Download Dockerfile from xTHExBEASTx/stremio: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/xTHExBEASTx/stremio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xTHExBEASTx/stremio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xTHExBEASTx/stremio/resolve/main/Dockerfile
572 Bytes
| FROM node:20-slim | |
| RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/* | |
| RUN npm install -g pnpm | |
| WORKDIR /app | |
| COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./ | |
| COPY packages/shared/package.json ./packages/shared/ | |
| COPY apps/server/package.json ./apps/server/ | |
| RUN pnpm install --frozen-lockfile | |
| COPY packages/shared ./packages/shared | |
| COPY apps/server ./apps/server | |
| WORKDIR /app/apps/server | |
| RUN pnpm db:generate | |
| RUN pnpm build | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "pnpm db:push && node dist/index.js"] | |