Browse Source

Disable GOPATH -- use newer go images

pull/1/head
Peter Stuifzand 1 year ago
parent
commit
29023674fd
Signed by: peter GPG Key ID: 374322D56E5209E8
  1. 3
      .drone.yml
  2. 7
      Dockerfile.alpine

3
.drone.yml

@ -7,9 +7,8 @@ workspace:
steps:
- name: testing
image: golang:1.12-alpine
image: golang:1.14-alpine
environment:
GOPATH: /go
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64

7
Dockerfile.alpine

@ -1,11 +1,10 @@
# 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
ENV CGO_ENABLED=0
RUN go get p83.nl/go/ekster/...
RUN CGO_ENABLED=0 go get -a -ldflags '-extldflags "-static"' p83.nl/go/ekster/...
# final stage
FROM alpine:3.7
FROM alpine
RUN apk --no-cache add ca-certificates
RUN ["mkdir", "-p", "/opt/micropub"]
WORKDIR /opt/micropub

Loading…
Cancel
Save