updated dockerfile to use default branch
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
724c11864e
commit
d95d71c213
3 changed files with 8 additions and 23 deletions
|
@ -6,12 +6,13 @@ FROM arm32v7/golang:1.15.7-alpine3.12@sha256:d54bff25a171d1b3036bf6b5dea2bbfaf75
|
|||
FROM arm64v8/golang:1.15.7-alpine3.12@sha256:e5389316a6dc295d6c0ca269c39124ad5bc9ebb416c71c810822cf6fbcf8ff01 AS builder-arm64
|
||||
FROM builder-${ARCH} AS builder
|
||||
|
||||
ENV MORTY_VERSION="v0.2.0"
|
||||
ENV MORTY_VERSION="4021e4369d6f62690474991a9b6901b751b940d5"
|
||||
|
||||
WORKDIR $GOPATH/src/github.com/asciimoo/morty
|
||||
|
||||
RUN apk add --no-cache tar="1.32-r1" git="2.26.2-r0" curl="7.69.1-r3" \
|
||||
&& curl -L "https://github.com/asciimoo/morty/archive/${MORTY_VERSION}.tar.gz" | tar xvz --strip 1
|
||||
RUN apk add --no-cache git="2.26.2-r0" \
|
||||
&& git clone https://github.com/asciimoo/morty.git . \
|
||||
&& git checkout "${MORTY_VERSION}"
|
||||
|
||||
RUN go get -d -v && gofmt -l ./ && go build .
|
||||
|
||||
|
|
Reference in a new issue