All checks were successful
Build and Push Docker Image to GHCR / build-and-push (push) Successful in 1h19m23s
This commit includes many bug fixes and improvements to the admin UI. More errors are caught and displayed to the user. Submit buttons now display a loading state while the request is being processed. Several inconsistencies and style issues in the admin UI have been fixed. Image upload inputs now have an accurate accept attribute, so tat users cannot upload images that are unsupported. Finally, in development mode, the page is outlined in dashed yello to help me not go insane when I forget that I'm using the deployed site and thats why my changes arent doing anything, and the API returns 400 errors when images are unsupported formats.
31 lines
570 B
Docker
31 lines
570 B
Docker
FROM golang:1.25 AS builder
|
|
|
|
# build dependencies
|
|
RUN apt update && apt install -y upx unzip
|
|
|
|
RUN curl -fsSL https://bun.com/install | BUN_INSTALL=/usr bash
|
|
|
|
|
|
RUN go install github.com/juls0730/zqdgr@latest
|
|
|
|
WORKDIR /app
|
|
|
|
ARG TARGETARCH
|
|
ENV CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH}
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
|
|
RUN bun install
|
|
|
|
RUN zqdgr build
|
|
|
|
# ---- Runtime Stage ----
|
|
FROM gcr.io/distroless/static-debian12 AS runner
|
|
|
|
WORKDIR /data
|
|
COPY --from=builder /app/passport /usr/local/bin/passport
|
|
EXPOSE 3000
|
|
|
|
CMD ["/usr/local/bin/passport"] |