moth/Dockerfile.moth

12 lines
297 B
Docker
Raw Normal View History

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
RUN go get .
RUN go build -o /mothd *.go
2018-09-19 18:18:04 -06:00
FROM alpine
COPY --from=builder /mothd /mothd
COPY theme /theme
2018-09-19 18:18:04 -06:00
ENTRYPOINT [ "/mothd" ]