Cleanup of build files
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Peter Stuifzand 2019-08-07 00:07:45 +02:00
parent 0e9c975e45
commit 6c86be1aba
Signed by: peter
GPG Key ID: 374322D56E5209E8
3 changed files with 10 additions and 6 deletions

View File

@ -8,9 +8,12 @@ workspace:
steps: steps:
- name: testing - name: testing
image: golang:1.12-alpine image: golang:1.12-alpine
environment:
GOPATH: /go
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
commands: commands:
- export GOPATH=/go
- export CGO_ENABLED=0 GOOS=linux GOARCH=amd64
- apk --no-cache add git - apk --no-cache add git
- go get -d -t ./... - go get -d -t ./...
- go build ./... - go build ./...

View File

@ -1,7 +1,7 @@
FROM alpine FROM alpine:3.7
RUN apk --no-cache add ca-certificates RUN apk --no-cache add ca-certificates
WORKDIR /opt/micropub WORKDIR /opt/micropub
EXPOSE 80 EXPOSE 80
COPY ./eksterd /app/ COPY ./bin/eksterd /app/
COPY ./templates /app/templates COPY ./templates /app/templates
ENTRYPOINT ["/app/eksterd"] ENTRYPOINT ["/app/eksterd"]

View File

@ -1,10 +1,11 @@
# build stage # build stage
FROM golang:1.10.2-alpine3.7 AS build-env FROM golang:1.12.0-alpine3.7 AS build-env
RUN apk --no-cache add git RUN apk --no-cache add git
ENV CGO_ENABLED=0
RUN go get p83.nl/go/ekster/... RUN go get p83.nl/go/ekster/...
# final stage # final stage
FROM alpine FROM alpine:3.7
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