feat: add create-user cli

This commit is contained in:
2026-04-20 17:18:54 +02:00
parent 15cb3ea556
commit 45ce8c1aa4
4 changed files with 152 additions and 134 deletions

View File

@@ -27,8 +27,9 @@ RUN bun run build:assets
# Generate templ files
RUN templ generate
# Build the server and the CLI tools
# 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
@@ -41,6 +42,7 @@ 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