-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile.rhtap
More file actions
executable file
·37 lines (28 loc) · 950 Bytes
/
Containerfile.rhtap
File metadata and controls
executable file
·37 lines (28 loc) · 950 Bytes
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
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.20 AS builder
ENV SOURCE_DIR=/registry-credential-service
WORKDIR $SOURCE_DIR
COPY . $SOURCE_DIR
ENV GOFLAGS=""
RUN make binary
RUN pwd
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
RUN \
microdnf update -y \
&& \
microdnf install -y util-linux \
&& \
microdnf clean all
COPY --from=builder \
/registry-credential-service/registry-credential-service \
/usr/local/bin/
EXPOSE 8000
ENTRYPOINT ["/usr/local/bin/registry-credential-service", "serve"]
LABEL name="registry-credential-service" \
vendor="Red Hat, Inc." \
version="0.0.1" \
summary="registry-credential-service API" \
description="registry-credential-service API" \
io.k8s.description="registry-credential-service API" \
io.k8s.display-name="registry-credential-service" \
io.openshift.tags="registry-credential-service"
#20231204