mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
* Go build the Matchbox binary in the container image in a docker.io/golang builder stage rather building the binary separately
10 lines
246 B
Docker
10 lines
246 B
Docker
FROM docker.io/golang:1.14.9 AS builder
|
|
COPY . src
|
|
RUN cd src && make build
|
|
|
|
FROM docker.io/alpine:3.12
|
|
LABEL maintainer="Dalton Hubble <dghubble@gmail.com>"
|
|
COPY --from=builder /go/src/bin/matchbox /matchbox
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/matchbox"]
|