Skip to content

Commit

Permalink
upgrade golang
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Nov 11, 2016
1 parent 227db64 commit 5fe0bfb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ All notable changes to this project will be documented in this file.
### Removed

### Changed

- Upgrade Golang to 1.7.3
19 changes: 16 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,31 @@ FROM malice/alpine:tini

MAINTAINER blacktop, https://github.com/blacktop

ADD https://raw.githubusercontent.com/maliceio/go-plugin-utils/master/scripts/upgrade-alpine-go.sh /upgrade-alpine-go.sh

COPY . /go/src/github.com/maliceio/malice-virustotal
RUN apk-install ca-certificates
RUN apk-install -t build-deps go git mercurial \
RUN apk-install -t .build-deps \
build-base \
mercurial \
musl-dev \
openssl \
bash \
wget \
git \
gcc \
go \
&& set -x \
&& chmod +x /upgrade-alpine-go.sh \
&& ./upgrade-alpine-go.sh \
&& echo "Building virustotal Go binary..." \
&& cd /go/src/github.com/maliceio/malice-virustotal \
&& export GOPATH=/go \
&& go version \
&& go get \
&& go build -ldflags "-X main.Version=$(cat VERSION) -X main.BuildTime=$(date -u +%Y%m%d)" -o /bin/virustotal \
&& rm -rf /go /tmp/* \
&& apk del --purge build-deps
&& rm -rf /go /usr/local/go /usr/lib/go /tmp/* \
&& apk del --purge .build-deps

WORKDIR /malware

Expand Down

0 comments on commit 5fe0bfb

Please sign in to comment.