listen/docker/build.Dockerfile

17 lines
354 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
RUN go install github.com/go-task/task/v3/cmd/task@latest
ENV GOOS="linux"
RUN task build
CMD ["tail", "-f", "/dev/null"]