moth/Dockerfile.moth

13 lines
346 B
Docker
Raw Permalink Normal View History

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 CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o /mothd *.go
2018-09-19 18:18:04 -06:00
FROM scratch
2018-09-19 18:18:04 -06:00
COPY --from=builder /mothd /mothd
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" ]