- 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
$PORTand bind0.0.0.0.PORTis injected (3000 by default). Binding127.0.0.1makes 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/repoexactly 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/repoorhttps://bitbucket.org/team/repo(.gitoptional). 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"]