forked from openshift/sippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (17 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
18 lines (17 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM registry.access.redhat.com/ubi9/ubi:latest AS builder
WORKDIR /go/src/sippy
COPY . .
ENV PATH="/go/bin:${PATH}"
ENV GOPATH="/go"
RUN dnf module enable nodejs:18 -y && dnf install -y go make npm && make build
RUN go build -cover -coverpkg=./cmd/...,./pkg/... -mod=vendor -o ./sippy-cover ./cmd/sippy
FROM registry.access.redhat.com/ubi9/ubi:latest AS base
RUN mkdir -p /historical-data
RUN mkdir -p /config
COPY --from=builder /go/src/sippy/sippy /bin/sippy
COPY --from=builder /go/src/sippy/sippy-cover /bin/sippy-cover
COPY --from=builder /go/src/sippy/sippy-daemon /bin/sippy-daemon
COPY --from=builder /go/src/sippy/scripts/fetchdata.sh /bin/fetchdata.sh
COPY --from=builder /go/src/sippy/config/*.yaml /config/
ENTRYPOINT ["/bin/sippy"]
EXPOSE 8080