-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (28 loc) · 977 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
30
ARG builder_version=8.10
ARG runner_version=8.10
ARG ref=master
ARG goversion=1.22.6
FROM registry.access.redhat.com/ubi8/ubi:${builder_version} AS builder
ARG ref
ARG goversion
RUN dnf install -y go git make gettext \
&& go install golang.org/dl/go$goversion@latest \
&& ~/go/bin/go$goversion download \
&& mkdir -p ~/bin \
&& ln -s ~/go/bin/go$goversion ~/bin/go \
&& export PATH="$HOME/bin:$PATH" \
&& pushd /root \
&& git clone --depth 1 --branch $ref https://github.com/seaweedfs/seaweedfs \
&& pushd seaweedfs/weed \
&& make install \
&& popd \
&& popd
FROM registry.access.redhat.com/ubi8/ubi-micro:${runner_version}
ARG ref
ARG goversion
LABEL seaweedfs.version=$ref golang.version=$goversion
COPY --from=builder /usr/bin/envsubst /root/go/bin/weed /usr/bin/
COPY ./cryostat-entrypoint.bash /usr/bin/
COPY seaweed_conf.template.json /etc/seaweed_conf.template.json
USER 185
ENTRYPOINT ["/usr/bin/cryostat-entrypoint.bash"]