listen/docker/build.Dockerfile

15 lines
310 B
Docker

# 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
ENV GOOS="linux"
RUN go build -o out/$GOOS/ .
CMD ["tail", "-f", "/dev/null"]