Tidy up build for RPi (ta John), bump version

This commit is contained in:
Neale Pickett 2019-03-01 21:18:23 +00:00
parent dbb90d0105
commit b08e121b60
2 changed files with 6 additions and 7 deletions

View File

@ -1,11 +1,10 @@
FROM alpine:3.9 AS builder
RUN apk --no-cache add go libc-dev git
COPY src /root/go/src/github.com/dirtbags/moth/src
WORKDIR /root/go/src/github.com/dirtbags/moth/src
FROM golang:1.12.0-alpine AS builder
COPY src /go/src/github.com/dirtbags/moth/src
WORKDIR /go/src/github.com/dirtbags/moth/src
RUN go get .
RUN go build -o /mothd *.go
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o /mothd *.go
FROM alpine
FROM scratch
COPY --from=builder /mothd /mothd
COPY theme /theme
ENTRYPOINT [ "/mothd" ]

View File

@ -1 +1 @@
3.0-rc4
3.1-rc1