mirror of https://github.com/dirtbags/moth.git
12 lines
297 B
Docker
12 lines
297 B
Docker
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
|
|
|
|
FROM alpine
|
|
COPY --from=builder /mothd /mothd
|
|
COPY theme /theme
|
|
ENTRYPOINT [ "/mothd" ]
|