-
Notifications
You must be signed in to change notification settings - Fork 60
/
Dockerfile
17 lines (16 loc) · 673 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
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-daemon /bin/sippy-daemon
COPY --from=builder /go/src/sippy/scripts/fetchdata.sh /bin/fetchdata.sh
COPY --from=builder /go/src/sippy/historical-data /historical-data/
COPY --from=builder /go/src/sippy/config/*.yaml /config/
ENTRYPOINT ["/bin/sippy"]
EXPOSE 8080