Skip to content

Commit

Permalink
Change Dockerfile and CircleCI to build outside GOPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Nov 1, 2018
1 parent 3e296f6 commit ddc6ca2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions .circleci/config.yml
Expand Up @@ -3,9 +3,6 @@ jobs:
build:
docker:
- image: circleci/golang:1.11.1
environment:
GO111MODULE: "on"
working_directory: /go/src/github.com/int128/slack-docker
steps:
- checkout
- run: go get golang.org/x/lint/golint
Expand All @@ -17,9 +14,6 @@ jobs:
release:
docker:
- image: circleci/golang:1.11.1
environment:
GO111MODULE: "on"
working_directory: /go/src/github.com/int128/slack-docker
steps:
- checkout
- run: go vet
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
@@ -1,7 +1,6 @@
FROM golang:1.11.1-alpine AS builder
WORKDIR /go/src/github.com/int128/slack-docker
RUN apk update && apk add --no-cache git gcc musl-dev
ENV GO111MODULE on
WORKDIR /build
COPY . .
RUN go install -v

Expand Down

0 comments on commit ddc6ca2

Please sign in to comment.