forked from banzaicloud/telescopes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 841 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
# build stage
FROM us.gcr.io/platform-205701/harness/ubi8/go1:1.22 AS builder
ENV GOFLAGS="-mod=readonly"
#RUN apt-get update && apt-get install -y ca-certificates make git curl mercurial
#RUN apk add --update --no-cache ca-certificates make git curl mercurial
USER root
RUN microdnf update && microdnf install -y ca-certificates make git curl && microdnf clean all
RUN mkdir -p /build
WORKDIR /build
COPY go.* /build/
RUN go mod download
COPY . /build
RUN BINARY_NAME=telescopes make build-release
# FROM alpine:3.14.0
FROM us.gcr.io/platform-205701/harness/ubi8/go1:1.22
USER root
# RUN microdnf install yum
# RUN apk add --update --no-cache ca-certificates tzdata bash curl
# RUN yum install -y ca-certificates tzdata
COPY --from=builder /build/build/release/telescopes /bin
ENTRYPOINT ["/bin/telescopes"]
CMD ["/bin/telescopes"]