forked from mcuadros/ofelia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (18 loc) · 628 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM golang:1.23-alpine AS builder
RUN apk update
RUN apk upgrade
RUN apk add gcc musl-dev git
WORKDIR ${GOPATH}/src/github.com/netresearch/ofelia
COPY go.mod go.sum ./
RUN go mod download
COPY . ${GOPATH}/src/github.com/netresearch/ofelia
RUN go build -o /go/bin/ofelia .
FROM alpine:3.20
# this label is required to identify container with ofelia running
LABEL ofelia.service=true
LABEL ofelia.enabled=true
RUN apk --no-cache upgrade
RUN apk --no-cache add ca-certificates tzdata
COPY --from=builder /go/bin/ofelia /usr/bin/ofelia
ENTRYPOINT ["/usr/bin/ofelia"]
CMD ["daemon", "--config", "/etc/ofelia/config.ini"]