This commit is contained in:
parent
0e9c975e45
commit
6c86be1aba
|
@ -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 ./...
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user