- Multi-stage build using rust:1.96-bookworm builder and scratch runtime. - Produces a fully statically linked x86_64-unknown-linux-musl server binary. - Builds frontend assets (Tiptap, Tailwind, Dioxus WASM) and bundles public/. - Image size ~25 MB; server listens on 0.0.0.0:3000.
20 lines
374 B
Plaintext
20 lines
374 B
Plaintext
target/
|
|
.git/
|
|
dist/
|
|
.dioxus/
|
|
node_modules/
|
|
libs/tiptap-editor/node_modules/
|
|
|
|
# Generated assets are rebuilt inside the container.
|
|
public/style.css
|
|
public/highlight.css
|
|
public/tiptap/
|
|
|
|
# Uploads directory is created at runtime; only keep the gitkeep marker.
|
|
uploads/*
|
|
!uploads/.gitkeep
|
|
|
|
# Docker files themselves are not needed in the build context.
|
|
Dockerfile
|
|
.dockerignore
|