This repository was archived by the owner on Sep 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,16 +7,14 @@ RUN apk add --no-cache --update make git perl-utils dep shadow
77ARG UID="1000"
88ARG BRANCH="master"
99
10- RUN adduser -D -u $UID app
11-
1210ENV GOPATH "/home/app/go"
1311ENV PATH "${GOPATH}/bin:${PATH}"
1412ENV GOCACHE "/home/app/.cache"
1513
1614RUN mkdir -p "${GOPATH}/src/github.com/joyent/"
17- RUN chown -R app /home/app
15+ RUN chown -R $UID /home/app
1816
19- USER app
17+ USER $UID
2018
2119WORKDIR "${GOPATH}/src/github.com/joyent/"
2220RUN git clone --branch $BRANCH https://github.com/joyent/conch-shell conch-shell
Original file line number Diff line number Diff line change @@ -42,9 +42,10 @@ tools: ## Download and install all dev/code tools
4242
4343PLATFORMS := darwin-amd64 linux-amd64 solaris-amd64 freebsd-amd64 openbsd-amd64 linux-arm
4444BINARIES := conch conch-minimal tester corpus
45+ RELEASE_BINARIES := conch
4546
4647BINS := $(foreach bin,$(BINARIES ) ,bin/$(bin ) )
47- RELEASES := $(foreach bin,$(BINARIES ) ,release/$(bin ) )
48+ RELEASES := $(foreach bin,$(RELEASE_BINARIES ) ,release/$(bin ) )
4849
4950GIT_REV := $(shell git describe --always --abbrev --dirty --long)
5051FLAGS_PATH := github.com/joyent/conch-shell/pkg/util
@@ -71,7 +72,7 @@ define release_me
7172 $(eval GOARCH:=$(call arch, $(platform ) ) )
7273 $(eval RPATH:=release/$(BIN ) -$(GOOS ) -$(GOARCH ) )
7374
74- $(BUILD ) -o $(RPATH ) cmd/$(BIN ) /*.go
75+ GOOS= $( GOOS ) GOARCH= $( GOARCH ) $(BUILD ) -o $(RPATH ) cmd/$(BIN ) /*.go
7576 shasum -a 256 $(RPATH ) > $(RPATH ) .sha256
7677endef
7778
You can’t perform that action at this time.
0 commit comments