blob: 115e4231bb96d1416f74aa8ffd1d522234b4452a [file] [log] [blame]
# Copyright 2022 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
FROM golang:1.18 AS build
COPY go.mod /app/go.mod
COPY go.sum /app/go.sum
RUN go mod download
COPY . /app
RUN go build -o run-influx
COPY --from=build /app/run-influx /run-influx
ENTRYPOINT ["/bin/sh"]
CMD ["-c", "/run-influx -listen-http=:80"]