Files
autoglue/Dockerfile
public-glueops-renovatebot[bot] f5f8a28990 feat: update golang to 1.26.0 #minor
2026-02-11 20:21:40 +00:00

42 lines
1.0 KiB
Docker

#################################
# Builder: Go + Node in one
#################################
FROM golang:1.26.0-alpine@sha256:d4c4845f5d60c6a974c6000ce58ae079328d03ab7f721a0734277e69905473e5 AS builder
RUN apk add --no-cache \
bash git ca-certificates tzdata \
build-base \
nodejs npm \
openjdk17-jre-headless \
jq yq brotli
RUN npm i -g yarn pnpm
WORKDIR /src
COPY . .
RUN make clean
RUN make swagger
RUN make sdk-ts-ui
RUN make ui
RUN make build
#################################
# Runtime
#################################
FROM alpine:3.23@sha256:865b95f46d98cf867a156fe4a135ad3fe50d2056aa3f25ed31662dff6da4eb62
RUN apk add --no-cache ca-certificates tzdata postgresql17-client \
&& addgroup -S app && adduser -S app -G app
WORKDIR /app
COPY --from=builder /src/autoglue /app/autoglue
ENV PORT=8080
EXPOSE 8080
USER app
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -qO- "http://127.0.0.1:${PORT}/api/v1/healthz" || exit 1
ENTRYPOINT ["/app/autoglue"]