Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #36 from yahoojapan/feature-compress-ngtd-docker
Browse files Browse the repository at this point in the history
LGTM 👍
  • Loading branch information
gdmzkit authored Apr 2, 2019
2 parents 4138e2c + 17e38c2 commit a50478f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
command: |
# env DOCKER_BUILDKIT=1 docker build -t ${REPO_NAME}/${IMAGE_NAME}:latest .
docker build -t ${REPO_NAME}/${IMAGE_NAME}:latest .
no_output_timeout: 1h
- run:
name: save image
command: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV NGT_VERSION 1.7.0
ENV DEBIAN_FRONTEND noninteractive
ENV INITRD No
ENV LANG ja_JP.UTF-8
ENV GOVERSION 1.11.5
ENV GOVERSION 1.12.1
ENV GOROOT /opt/go
ENV GOPATH /go

Expand Down Expand Up @@ -41,7 +41,7 @@ RUN CGO_ENABLED=1 \
GOARCH=$(go env GOARCH) \
GO111MODULE=on \
go build --ldflags '-s -w -linkmode "external" -extldflags "-static -fPIC -m64 -pthread -fopenmp -std=c++17 -lstdc++ -lm"' -a -tags "cgo netgo" -installsuffix "cgo netgo" -o ${APP_NAME} \
&& upx -9 -o /usr/bin/${APP_NAME} ${APP_NAME}
&& upx --best --ultra-brute -o /usr/bin/${APP_NAME} ${APP_NAME}

# Start From Scratch For Running Environment
FROM scratch
Expand Down

0 comments on commit a50478f

Please sign in to comment.