mirror of
https://github.com/glanceapp/glance.git
synced 2025-02-21 12:51:38 +01:00
17 lines
364 B
Docker
17 lines
364 B
Docker
FROM golang:1.23.1-alpine3.20 AS builder
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN CGO_ENABLED=0 go build .
|
|
|
|
FROM alpine:3.20
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/glance .
|
|
|
|
HEALTHCHECK --timeout=10s --start-period=60s --interval=60s \
|
|
CMD wget --spider -q http://localhost:8080/api/healthz
|
|
|
|
EXPOSE 8080/tcp
|
|
ENTRYPOINT ["/app/glance", "--config", "/app/config/glance.yml"]
|