listen/docker/build.Dockerfile

17 lines
374 B
Text
Raw Permalink Normal View History

# 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
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"]