Example DBBasic apps (an API, a blog and a microblog) and a template for new DBBasic modules.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-examples.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-examples.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-examples.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add official module template for creating DBBasic packages 17cf88a 1 year, 1 month ago History
Dockerfile · 443 bytes · 19 lines
1FROM python:3.12-slim
2
3WORKDIR /app
4
5COPY requirements.txt .
6RUN pip install --no-cache-dir -r requirements.txt
7
8COPY . .
9
10# Create data directories
11RUN mkdir -p data etc var
12
13# Health check using Python (no curl/wget needed)
14HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
15 CMD python3 healthcheck.py
16
17EXPOSE 3000
18
19CMD ["uvicorn", "dbbasic_web.asgi:app", "--host", "0.0.0.0", "--port", "3000", "--workers", "2"]