File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
- 7.3.0
1
+ 7.3.1
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2019 Red Hat, Inc.
2
+ # This program and the accompanying materials are made
3
+ # available under the terms of the Eclipse Public License 2.0
4
+ # which is available at https://www.eclipse.org/legal/epl-2.0/
5
+ #
6
+ # SPDX-License-Identifier: EPL-2.0
7
+ #
8
+ # Contributors:
9
+ # Red Hat, Inc. - initial API and implementation
10
+ #
11
+
12
+ # https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/rhel8/go-toolset
13
+ FROM rhel8/go-toolset:1.11.13-18 as builder
14
+ ENV PATH=/opt/rh/go-toolset-1.11/root/usr/bin:$PATH \
15
+ GOPATH=/go/
16
+ USER root
17
+ WORKDIR /go/src/github.com/eclipse/che-machine-exec/
18
+ COPY . .
19
+ RUN adduser unprivilegeduser && \
20
+ CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec .
21
+
22
+ FROM scratch
23
+ COPY --from=builder /etc/passwd /etc/passwd
24
+ COPY --from=builder /go/src/github.com/eclipse/che-machine-exec/che-machine-exec /go/bin/che-machine-exec
25
+ USER unprivilegeduser
26
+ ENTRYPOINT ["/go/bin/che-machine-exec" ]
27
+
28
+ # append Brew metadata here
You can’t perform that action at this time.
0 commit comments