feat: sync current progress (P0 hardening + P1 observability + deploy docs/systemd)
This commit is contained in:
17
deploy/Dockerfile
Normal file
17
deploy/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.23-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum* ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -o asset-tracker ./cmd/server
|
||||
|
||||
FROM alpine:3.20
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache ca-certificates
|
||||
COPY --from=builder /app/asset-tracker /app/asset-tracker
|
||||
COPY --from=builder /app/openapi.yaml /app/openapi.yaml
|
||||
COPY --from=builder /app/web/dist /app/web/dist
|
||||
COPY --from=builder /app/web/legacy /app/web/legacy
|
||||
RUN mkdir -p /app/data
|
||||
EXPOSE 9530
|
||||
CMD ["/app/asset-tracker"]
|
||||
Reference in New Issue
Block a user