* feat(web): Jinja2 + HTMX + Pico CSS boilerplate - Add jinja2, aiofiles, jinja2-fragments, python-multipart deps - Wire up Jinja2Blocks (jinja2-fragments) and static file serving - Create base.html (Pico Jade theme, HTMX, nav with auth state) - Create index.html (landing) and dashboard.html (user profile) - Add get_optional_session dependency for anonymous template context - Refactor get_current_session to share session lookup logic * feat(web): replace Pico CSS with Tailwind standalone CLI (dark+pink theme) - Download Tailwind v4.3.0 standalone CLI binary (gitignored) - Define custom dark+pink theme tokens in input.css - Add dev.sh for parallel Tailwind watcher + uvicorn - Update Dockerfile to build Tailwind during image build - Update templates with Tailwind utility classes - Generate minified output.css at build time * Update boilerplate UI design system * Refine Forgejo sign-in button * feat(ui): adjust starting ui template html structure and theme styling * refactor(ui): normalize Tailwind design tokens * refactor(ui): fix Forgejo token input styling and validation styling * refactor(ui): move panel titles and sub titles outside panels * refactor(ui): vendor forgejo logo svg from /web/static/img
27 lines
No EOL
778 B
Docker
27 lines
No EOL
778 B
Docker
FROM python:3.13-slim
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv:0.7.4 /uv /uvx /bin/
|
|
|
|
WORKDIR /app
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
RUN useradd --create-home --shell /bin/bash appuser
|
|
|
|
COPY --chown=appuser:appuser pyproject.toml uv.lock ./
|
|
RUN UV_NO_DEV=1 uv sync --frozen --no-cache && chown -R appuser:appuser /app
|
|
|
|
COPY --chown=appuser:appuser . .
|
|
|
|
# Build Tailwind CSS
|
|
RUN curl -sL https://github.com/tailwindlabs/tailwindcss/releases/download/v4.3.0/tailwindcss-linux-x64 -o /tmp/tailwindcss && \
|
|
chmod +x /tmp/tailwindcss && \
|
|
/tmp/tailwindcss -i app/static/css/input.css -o app/static/css/output.css --minify && \
|
|
rm /tmp/tailwindcss
|
|
|
|
USER appuser
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] |