2019-03-01 14:18:23 -07:00
|
|
|
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
|
2019-02-21 16:00:06 -07:00
|
|
|
RUN go get .
|
2019-03-01 14:18:23 -07:00
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o /mothd *.go
|
2018-09-19 18:18:04 -06:00
|
|
|
|
2019-03-01 14:18:23 -07:00
|
|
|
FROM scratch
|
2018-09-19 18:18:04 -06:00
|
|
|
COPY --from=builder /mothd /mothd
|
2018-09-27 17:12:29 -06:00
|
|
|
COPY theme /theme
|
2020-01-29 17:03:07 -07:00
|
|
|
COPY LICENSE.md /LICENSE
|
|
|
|
|
2018-09-19 18:18:04 -06:00
|
|
|
ENTRYPOINT [ "/mothd" ]
|