fixup docs and use zqdgr in the build process

This commit is contained in:
Zoe
2025-09-23 13:45:05 +00:00
parent bc8b9d172b
commit 8e6753ebea
2 changed files with 15 additions and 6 deletions

View File

@@ -14,11 +14,12 @@ RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v4.1
RUN chmod +x tailwindcss-linux-x64 RUN chmod +x tailwindcss-linux-x64
RUN mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss RUN mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss
RUN go generate RUN go install github.com/juls0730/zqdgr@latest
RUN go build -ldflags="-w -s" -o passport
RUN zqdgr build
# ---- Runtime Stage ---- # ---- Runtime Stage ----
FROM gcr.io/distroless/cc-debian12 FROM gcr.io/distroless/cc-debian12 AS runner
WORKDIR /data WORKDIR /data
COPY --from=builder /app/passport /usr/local/bin/passport COPY --from=builder /app/passport /usr/local/bin/passport

View File

@@ -22,22 +22,30 @@ Passport is a simple, fast, and lightweight web dashboard/new tab replacement.
Passport is available as a Docker image via this repository. This is the recommended way to run Passport. Passport is available as a Docker image via this repository. This is the recommended way to run Passport.
```bash ```bash
docker run -d --name passport -p 3000:3000 -e PASSPORT_ADMIN_USERNAME=admin -e PASSPORT_ADMIN_PASSWORD=password ghcr.io/juls0730/passport:latest docker run -d --name passport -p 3000:3000 -v passport_data:/data -e PASSPORT_ADMIN_USERNAME=admin -e PASSPORT_ADMIN_PASSWORD=password ghcr.io/juls0730/passport:latest
``` ```
Make sure to change the admin password to something secure. At `/data` is where all of passport's persistent data will be stored, such as image uploads and the sqlite database.
### Building from source ### Building from source
If you want to build from source, you will need to install the dependencies first. If you want to build from source, you will need to install the dependencies first.
```bash ```bash
# note entirely necessary, but strongly recommended
go install github.com/juls0730/zqdgr@latest go install github.com/juls0730/zqdgr@latest
go install github.com/tailwindlabs/tailwindcss-cli@latest
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v4.1.13/tailwindcss-linux-x64
chmod +x tailwindcss-linux-x64
mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss
# you may also have to install sqlite3...
``` ```
Then you can build the binary. Then you can build the binary.
```bash ```bash
go build -o passport zqdgr build
``` ```
You can then run the binary. You can then run the binary.