it would help to add the new dockerfile
This commit is contained in:
parent
f68a78e10f
commit
145c0e5375
1 changed files with 16 additions and 0 deletions
16
docker/build.Dockerfile
Normal file
16
docker/build.Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 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"]
|
Loading…
Add table
Reference in a new issue