This repository is currently being migrated. It's locked while the migration is in progress.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (31 loc) · 1.38 KB
/
Copy pathDockerfile
File metadata and controls
35 lines (31 loc) · 1.38 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
# Build the manager binary
FROM golang:1.18 as builder
WORKDIR /workspace
COPY . /workspace
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
# Use ubi8-minimal as the base image to package the manager binary. Refer to
# https://catalog.redhat.com/software/containers/ubi8/ubi-minimal/5c359a62bed8bd75a2c3fba8
# for more details
FROM registry.access.redhat.com/ubi8/ubi-minimal
ARG VERSION=v1.0.0
WORKDIR /
LABEL name="StorageOS Operator" \
maintainer="support@storageos.com" \
vendor="StorageOS" \
version="${VERSION}" \
release="2" \
distribution-scope="public" \
architecture="x86_64" \
url="https://docs.storageos.com" \
io.k8s.description="The StorageOS Operator installs and manages StorageOS within a cluster." \
io.k8s.display-name="StorageOS Operator" \
io.openshift.tags="" \
summary="Highly-available persistent block storage for containerized applications." \
description="StorageOS transforms commodity server or cloud based disk capacity into enterprise-class storage to run persistent workloads such as databases in containers. Provides high availability, low latency persistent block storage. No other hardware or software is required."
RUN mkdir -p /licenses
COPY LICENSE /licenses/LICENSE
COPY channels channels
COPY --from=builder /workspace/manager .
USER 65532:65532
ENTRYPOINT ["/manager"]