mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-04-17 11:39:23 +02:00
Co-authored-by: public-glueops-renovatebot[bot] <186083205+public-glueops-renovatebot[bot]@users.noreply.github.com>
42 lines
1.0 KiB
Docker
42 lines
1.0 KiB
Docker
#################################
|
|
# Builder: Go + Node in one
|
|
#################################
|
|
FROM golang:1.26.1-alpine@sha256:2389ebfa5b7f43eeafbd6be0c3700cc46690ef842ad962f6c5bd6be49ed82039 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:5b10f432ef3da1b8d4c7eb6c487f2f5a8f096bc91145e68878dd4a5019afde11
|
|
|
|
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"] |