mirror of
https://github.com/niusmallnan/steve.git
synced 2025-10-21 19:01:31 +00:00
12 lines
325 B
Docker
12 lines
325 B
Docker
FROM golang:1.12 as build
|
|
COPY go.mod go.sum main.go /src/
|
|
COPY vendor /src/vendor/
|
|
COPY pkg /src/pkg/
|
|
RUN cd /src && \
|
|
CGO_ENABLED=0 go build -ldflags "-extldflags -static -s" -o /naok -mod=vendor
|
|
|
|
FROM alpine
|
|
RUN apk -U --no-cache add ca-certificates
|
|
COPY --from=build /naok /usr/bin/naok
|
|
ENTRYPOINT ["/usr/bin/naok"]
|