Disable GOPATH -- use newer go images
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
9ef3369389
commit
29023674fd
|
@ -7,9 +7,8 @@ workspace:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: testing
|
- name: testing
|
||||||
image: golang:1.12-alpine
|
image: golang:1.14-alpine
|
||||||
environment:
|
environment:
|
||||||
GOPATH: /go
|
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
# build stage
|
# build stage
|
||||||
FROM golang:1.12.0-alpine3.7 AS build-env
|
FROM golang:1.14-alpine AS build-env
|
||||||
RUN apk --no-cache add git
|
RUN apk --no-cache add git
|
||||||
ENV CGO_ENABLED=0
|
RUN CGO_ENABLED=0 go get -a -ldflags '-extldflags "-static"' p83.nl/go/ekster/...
|
||||||
RUN go get p83.nl/go/ekster/...
|
|
||||||
|
|
||||||
# final stage
|
# final stage
|
||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
RUN ["mkdir", "-p", "/opt/micropub"]
|
RUN ["mkdir", "-p", "/opt/micropub"]
|
||||||
WORKDIR /opt/micropub
|
WORKDIR /opt/micropub
|
||||||
|
|
Loading…
Reference in New Issue
Block a user