- **refactor(main):** migrate static HTML to React components
- **feat(ui):** implement `AcknowledgeButton` component for acknowledging images - **feat(stats):** add dashboard stats for total images, pending updates, and acknowledged status - **chore(deps):** introduce `bun` dependency management and add required libraries - **style(ui):** enhance UI with Tailwind-based components and modularity improvements - **chore:** add drag-and-drop tag assignment using `@dnd-kit/core`
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,15 +1,25 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# Stage 1: Build frontend
|
||||
FROM oven/bun:1-alpine AS frontend-builder
|
||||
WORKDIR /app/frontend
|
||||
COPY frontend/package.json frontend/bun.lock ./
|
||||
RUN bun install --frozen-lockfile
|
||||
COPY frontend/ ./
|
||||
RUN bun run build
|
||||
|
||||
# Stage 2: Build Go binary
|
||||
FROM golang:1.26-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod .
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o server ./cmd/diunwebhook/main.go
|
||||
|
||||
# Stage 3: Runtime
|
||||
FROM alpine:3.18
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/server ./server
|
||||
COPY static ./static
|
||||
COPY --from=frontend-builder /app/frontend/dist ./frontend/dist
|
||||
EXPOSE 8080
|
||||
CMD ["./server"]
|
||||
|
||||
Reference in New Issue
Block a user