listen/docker/build.Dockerfile

19 lines
396 B
Text
Raw Normal View History

# This Dockerfile is meant for building listen ONLY
# listen is currently not intended to run in a Docker container
ARG IMAGE="1-alpine"
FROM golang:${IMAGE} AS build
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)/ .
CMD ["tail", "-f", "/dev/null"]