Download Dockerfile from Atmint/cpns: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/Atmint/cpns/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Atmint/cpns/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Atmint/cpns/resolve/main/Dockerfile
483 Bytes
| FROM oven/bun:1 as base | |
| WORKDIR /app | |
| # Copy configuration and workspaces | |
| COPY package.json bun.lock turbo.json ./ | |
| COPY apps ./apps | |
| COPY packages ./packages | |
| # Install dependencies using Bun | |
| RUN bun install --frozen-lockfile | |
| # Build the API server | |
| ENV NODE_ENV=production | |
| RUN bunx turbo build -F server | |
| # Expose port (biasanya Back4App menggunakan port otomatis, tapi kita set 3000 sesuai default) | |
| EXPOSE 3000 | |
| # Jalankan server | |
| CMD ["bun", "run", "--cwd", "apps/server", "start"] | |