mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
initial jobs dashboard
This commit is contained in:
37
Dockerfile
Normal file
37
Dockerfile
Normal file
@@ -0,0 +1,37 @@
|
||||
#################################
|
||||
# Builder: Go + Node in one
|
||||
#################################
|
||||
FROM golang:1.25-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache \
|
||||
git ca-certificates tzdata \
|
||||
build-base \
|
||||
nodejs npm
|
||||
|
||||
RUN npm i -g yarn pnpm
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
COPY . .
|
||||
RUN make swagger && make build
|
||||
|
||||
|
||||
#################################
|
||||
# Runtime
|
||||
#################################
|
||||
FROM alpine:3.20
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata \
|
||||
&& 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/healthz" || exit 1
|
||||
|
||||
ENTRYPOINT ["/app/autoglue"]
|
||||
Reference in New Issue
Block a user