try arg instead

This commit is contained in:
Bryson Steck 2025-07-11 19:42:45 -06:00
parent 629ead13f2
commit 67c4773f2b
Signed by: bryson
SSH key fingerprint: SHA256:XpKABw/nP4z8UVaH+weLaBnEOD86+cVwif+QjuYLGT4

View file

@ -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"]