docker/drawpile/listserver/Dockerfile.arm64v8

11 lines
474 B
Docker
Raw Normal View History

2020-04-09 00:34:00 +00:00
FROM arm64v8/golang:alpine as builder
RUN apk update && apk add --no-cache git gcc libc-dev
RUN go get github.com/BurntSushi/toml crawshaw.io/sqlite github.com/gorilla/mux github.com/gorilla/handlers github.com/kelseyhightower/envconfig
WORKDIR $GOPATH/src/github.com/drawpile/listserver
COPY . .
RUN go build -o /go/bin/listserver
FROM arm64v8/golang:alpine
COPY --from=builder /go/bin/listserver /go/bin/listserver
ENTRYPOINT ["/go/bin/listserver", "-l", "0.0.0.0:8080"]