forked from sigstore/rekor
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile.backfill-redis.rh
More file actions
39 lines (28 loc) · 1.47 KB
/
Copy pathDockerfile.backfill-redis.rh
File metadata and controls
39 lines (28 loc) · 1.47 KB
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
31
32
33
34
35
36
37
38
39
# Build stage
FROM registry.redhat.io/ubi9/go-toolset:9.8-1789950433@sha256:15c3098dc4639e8a0e6a1bc77b50964513a1d76dccae4b07b9808101c5addd04 AS build-env
ENV CGO_ENABLED=0
ENV GOFLAGS="-tags=no_openssl"
ENV GOFIPS140=v1.0.0
USER root
RUN mkdir -p /opt/app-root && mkdir -p /opt/app-root/src && git config --global --add safe.directory /opt/app-root/src
WORKDIR /opt/app-root/src/
COPY . .
RUN go mod edit -godebug=fips140=auto
RUN go mod download
ARG SERVER_LDFLAGS
RUN go build -mod=readonly -trimpath -ldflags "$(SERVER_LDFLAGS)" -o backfill-redis ./cmd/backfill-index
# Install stage
FROM registry.redhat.io/rhel9/redis-6@sha256:7993123008950b16a4ec5cfad18cbf11cc4915ecd84105200d198874592f7e20
COPY --from=build-env /opt/app-root/src/backfill-redis /usr/local/bin/backfill-redis
COPY LICENSE /licenses/license.txt
WORKDIR /opt/app-root/src/home
LABEL description="Backfillredis is a job that will go through the TLog and make sure that missing entries are added to the search index."
LABEL io.k8s.description="Backfillredis is a job that will go through the TLog and make sure that missing entries are added to the search index."
LABEL io.k8s.display-name="Backfillredis container image for Red Hat Trusted Signer"
LABEL io.openshift.tags="backfill-redis trusted-signer"
LABEL summary="Provides the backfill-redis binary for a rekor server"
LABEL com.redhat.component="backfill-redis"
LABEL name="rhtas/rekor-backfill-redis-rhel9"
USER 65532:65532
#ENTRYPOINT
ENTRYPOINT [ "backfill-redis" ]