File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed
Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ FROM debian:buster-slim
2+ WORKDIR /app
3+ RUN apt update
4+ RUN apt install -y ca-certificates
5+ RUN apt install openssl
6+ RUN update-ca-certificates --fresh
7+ ARG listen=0.0.0.0
8+ ARG port=8088
9+ ENV listen=$listen
10+ ENV port=$port
11+ COPY builds/linux/amd64/getsum ./
12+ CMD /app/getsum -s -l $listen -p $port -dir /tmp
13+ EXPOSE $port
Original file line number Diff line number Diff line change 1+ v2.0
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ VERSION=$( cat VERSION)
3+ docker build -t getsum:$VERSION .
Original file line number Diff line number Diff line change 11#! /bin/sh
2+ VERSION=$( cat VERSION)
23for GOOS in darwin linux windows openbsd freebsd ; do
34 for GOARCH in 386 amd64; do
45 GO_BIN_PATH=" builds/$GOOS /$GOARCH "
@@ -8,7 +9,7 @@ for GOOS in darwin linux windows openbsd freebsd ; do
89 EXTENSION=" .exe"
910 fi
1011 time GOOS=$GOOS GOARCH=$GOARCH go build -a -v -o ./$GO_BIN_PATH /getsum$EXTENSION ./cmd/getsum/main.go
11- TAR_FILE=$( pwd) /$GO_BIN_PATH /getsum-$GOOS -$GOARCH .tar.gz
12+ TAR_FILE=$( pwd) /$GO_BIN_PATH /getsum-$GOOS -$GOARCH - $VERSION .tar.gz
1213 tar -czvf $TAR_FILE $GO_BIN_PATH
1314 done
1415done
You can’t perform that action at this time.
0 commit comments