Skip to content

Websites

Contract

.taubyte/build.sh must produce deployable files under /out.

This kit:

#!/bin/sh
set -eu
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m mkdocs build --clean --site-dir site
mkdir -p /out
cp -a site/. /out/

Image

environment:
  image: python:3.12-slim

LF endings

Use .gitattributes so build.sh stays LF. CRLF causes set: Illegal option - on Linux builders.

Same-origin APIs

Because the website and functions share domain site, the browser can call /api/* without CORS pain (CORS headers are still set for completeness).