A social pastebin built on atproto.
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

bundle tailwind on build

+37 -1
+1
.gitignore
··· 14 14 morsel.db 15 15 morsel.db-wal 16 16 morsel.db-shm 17 + static/tailwind.css
+8
Dockerfile
··· 5 5 # Install uv for fast dependency management 6 6 COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv 7 7 8 + # Install Tailwind CSS standalone CLI 9 + ADD https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 /usr/local/bin/tailwindcss 10 + RUN chmod +x /usr/local/bin/tailwindcss 11 + 8 12 # Copy dependency files first (layer caching) 9 13 COPY pyproject.toml uv.lock ./ 10 14 ··· 14 18 # Copy application code 15 19 COPY main.py config.py identity.py atproto_oauth.py schema.sql ./ 16 20 COPY templates/ templates/ 21 + COPY static/input.css static/ 22 + 23 + # Build Tailwind CSS 24 + RUN tailwindcss -i static/input.css -o static/tailwind.css --minify 17 25 18 26 # Create data directory for secrets and database 19 27 RUN mkdir -p /data
+22
justfile
··· 1 + default: dev 2 + 3 + # Run dev server with CSS watching 4 + dev: 5 + tailwindcss -i static/input.css -o static/tailwind.css --watch & 6 + uv run flask --app main run --debug 7 + 8 + # Build CSS for production 9 + build-css: 10 + tailwindcss -i static/input.css -o static/tailwind.css --minify 11 + 12 + # Build Docker image 13 + build: 14 + docker build -t morsels . 15 + 16 + # Run with Docker Compose 17 + up: 18 + docker compose up -d 19 + 20 + # View logs 21 + logs: 22 + docker compose logs -f
+1
static/input.css
··· 1 + @import "tailwindcss" source("../templates");
+5 -1
templates/base.html
··· 3 3 <head> 4 4 <meta charset="utf-8"> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 - <script src="https://cdn.tailwindcss.com"></script> 6 + <link rel="stylesheet" href="/static/tailwind.css" onerror=" 7 + var s=document.createElement('script'); 8 + s.src='https://cdn.tailwindcss.com'; 9 + document.head.appendChild(s); 10 + "> 7 11 <link rel="stylesheet" href="/pygments.css"> 8 12 <title>{% block title %}morsels{% endblock %}</title> 9 13 </head>