try arg instead
This commit is contained in:
parent
629ead13f2
commit
67c4773f2b
1 changed files with 1 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
# listen is currently not intended to run in a Docker container
|
||||
|
||||
ARG IMAGE="1-alpine"
|
||||
ARG GOOS="linux"
|
||||
|
||||
FROM golang:${IMAGE} AS build
|
||||
|
||||
|
@ -9,7 +10,6 @@ WORKDIR /usr/src/listen
|
|||
COPY . .
|
||||
|
||||
RUN apk upgrade --no-cache
|
||||
ENV GOOS="linux"
|
||||
RUN go build -o out/$GOOS/ .
|
||||
|
||||
CMD ["tail", "-f", "/dev/null"]
|
||||
|
|
Loading…
Add table
Reference in a new issue