Get started

What a repo needs

  • A Dockerfile. The build is docker build — there are no buildpacks and no auto-detection. Set a different path on the Deploy tab if it isn't at the root.
  • Listen on $PORT and bind 0.0.0.0. PORT is injected (3000 by default). Binding 127.0.0.1 makes the container unreachable.
  • Private repos: connect the GitHub App under Settings → GitHub (one connection per GitHub user or organization; add more there, and "Manage access" picks which repos it shares). The new-service picker then lists exactly the repos you granted. A connection another workspace shared with yours shows there as "shared with this workspace" and lists only the repos it was given. No token is stored — a one-hour token that reads only that repo is minted per build, and only for a repo whose owner/repo exactly matches one the connection covers. A fine-grained PAT in the "Deploy token" field still works as a fallback.
  • A repository URL must be https://github.com/owner/repo, https://gitlab.com/group/repo or https://bitbucket.org/team/repo (.git optional). Other hosts, ssh://, userinfo and ports are refused.

Examples to start from. Don't set PORT yourself: it is injected.

Node:

FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
CMD ["node", "server.js"]

Next.js, with output: "standalone" in next.config:

FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production HOSTNAME=0.0.0.0
COPY --from=build /app/.next/standalone ./
COPY --from=build /app/.next/static ./.next/static
COPY --from=build /app/public ./public
CMD ["node", "server.js"]

Python, with FastAPI:

FROM python:3.13-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port $PORT"]

Something wrong or missing here? Tell us and a person will answer.