Initialize work order management system with database schema, API handlers, web client, and Docker configuration.
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
# ── Build stage ───────────────────────────────────────────────────────────────
|
||||
FROM golang:1.23-alpine AS builder
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache git
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o workorders ./cmd/server
|
||||
|
||||
# ── Runtime stage ─────────────────────────────────────────────────────────────
|
||||
FROM alpine:3.20
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache tzdata ca-certificates curl
|
||||
COPY --from=builder /app/workorders .
|
||||
COPY web/ ./web/
|
||||
EXPOSE 8080
|
||||
CMD ["./workorders"]
|
||||
Reference in New Issue
Block a user