2025-07-11 19:00:08 -06:00
|
|
|
# This Dockerfile is meant for building listen ONLY
|
|
|
|
# listen is currently not intended to run in a Docker container
|
|
|
|
|
2025-07-11 20:12:21 -06:00
|
|
|
FROM golang:1-alpine AS build
|
2025-07-11 19:00:08 -06:00
|
|
|
|
|
|
|
WORKDIR /usr/src/listen
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN apk upgrade --no-cache
|
2025-07-11 20:02:26 -06:00
|
|
|
ARG GOOS="linux"
|
|
|
|
RUN go env -w GOOS=${GOOS}
|
|
|
|
ARG GOARCH="amd64"
|
|
|
|
RUN go env -w GOARCH=${GOARCH}
|
|
|
|
RUN go build -o out/$(go env GOOS)/ .
|
2025-07-11 19:00:08 -06:00
|
|
|
|
|
|
|
CMD ["tail", "-f", "/dev/null"]
|