listen/docker/build.Dockerfile

16 lines
374 B
Docker

# This Dockerfile is meant for building listen ONLY
# listen is currently not intended to run in a Docker container
FROM golang:1-alpine AS build
WORKDIR /usr/src/listen
COPY . .
RUN apk upgrade --no-cache
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"]