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:
- name: testing
image: golang:1.12-alpine
environment:
GOPATH: /go
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
commands:
- export GOPATH=/go
- export CGO_ENABLED=0 GOOS=linux GOARCH=amd64
- apk --no-cache add git
- go get -d -t ./...
- go build ./...

View File

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

View File

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