Skip to content

Commit

Permalink
🎨 #11 DockerfileをGo1.13に対応した形に変更
Browse files Browse the repository at this point in the history
- "ENV GO111MODULE on" がデフォルトで有効になったので明示的に記載するのをやめた
- realizeをgo getする際に問題が発生したのでgopkg.in/urfave/cli.v2を別途追加するように改修

oxequa/realize#253
  • Loading branch information
keitakn committed Sep 17, 2019
1 parent 60cc9fb commit 95dc45b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docker/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM golang:1.12.7-alpine3.10 as build
FROM golang:1.13.0-alpine3.10 as build

LABEL maintainer="https://github.com/nekochans"

ENV GO111MODULE on

WORKDIR /go/app

COPY . .
Expand All @@ -12,7 +10,8 @@ RUN set -ex && \
apk update && \
apk add --no-cache git && \
go build -o portfolio-backend && \
go get -u github.com/oxequa/realize && \
go get gopkg.in/urfave/cli.v2@master && \
go get github.com/oxequa/realize && \
go get -u github.com/go-delve/delve/cmd/dlv && \
go build -o /go/bin/dlv github.com/go-delve/delve/cmd/dlv

Expand Down

0 comments on commit 95dc45b

Please sign in to comment.