-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
che #14947: Releasing 7.3.1 version of the che-machine-exec. Adding r…
…hel.Dockerfile Signed-off-by: Ilya Buziuk <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.3.0 | ||
7.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright (c) 2019 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Red Hat, Inc. - initial API and implementation | ||
# | ||
|
||
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/rhel8/go-toolset | ||
FROM rhel8/go-toolset:1.11.13-18 as builder | ||
ENV PATH=/opt/rh/go-toolset-1.11/root/usr/bin:$PATH \ | ||
GOPATH=/go/ | ||
USER root | ||
WORKDIR /go/src/github.com/eclipse/che-machine-exec/ | ||
COPY . . | ||
RUN adduser unprivilegeduser && \ | ||
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -s' -a -installsuffix cgo -o che-machine-exec . | ||
|
||
FROM scratch | ||
COPY --from=builder /etc/passwd /etc/passwd | ||
COPY --from=builder /go/src/github.com/eclipse/che-machine-exec/che-machine-exec /go/bin/che-machine-exec | ||
USER unprivilegeduser | ||
ENTRYPOINT ["/go/bin/che-machine-exec"] | ||
|
||
# append Brew metadata here |