fix: remove stale create-user docker build

This commit is contained in:
2026-04-20 17:56:22 +02:00
parent dd06ad3483
commit 92a69fdb35
3 changed files with 1 additions and 4 deletions

View File

@@ -29,7 +29,6 @@ RUN templ generate
# Build the server and CLI tools
RUN go build -o main_server ./cmd/server
RUN go build -o create_user ./cmd/create-user
FROM debian:bullseye-slim
@@ -42,7 +41,6 @@ RUN apt-get update && apt-get install -y ca-certificates sqlite3 && rm -rf /var/
RUN mkdir -p /app/data
COPY --from=builder /app/main_server .
COPY --from=builder /app/create_user .
COPY --from=builder /app/static ./static
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/migrations ./migrations

View File

@@ -131,7 +131,7 @@ When the server starts, the app is available at `http://localhost:3000`.
Important notes:
- Environment variables are read directly from the process environment (`PORT`, `DATABASE_FILE`, `ENV`, `PLAYBACK_PROXY_SECRET`); `.env` is not auto-loaded.
- The web app currently exposes a login route only. If your database has no users yet, create the first user outside the web UI.
- The web app currently exposes a login route only. Seed at least one user directly in the SQLite database before first login.
For containerized usage, the included `Dockerfile` uses a multi-stage build that installs Bun + templ, builds assets, generates templates, compiles `cmd/server`, and ships a slim runtime image with SQLite support.

View File

@@ -3,7 +3,6 @@
Executable entrypoints live here.
- `cmd/server`: main web process (`go run ./cmd/server`)
- `cmd/create-user`: admin CLI for adding login users (`go run ./cmd/create-user --email user@example.com --password-stdin`)
## Why this structure