From 3f5bcffcdde9ff0dda7d427358cf09b693aba5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramon=20R=C3=BCttimann?= Date: Wed, 1 Jan 2020 16:07:08 +0100 Subject: [PATCH] fix binary name and folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ramon Rüttimann --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 318357b..a91395f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,11 @@ COPY . . ENV DRONE_COMMIT=$DRONE_COMMIT ENV DRONE_TAG=$DRONE_TAG RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s -X main.version=$DRONE_TAG -X main.commit=$DRONE_COMMIT" -o "mediaconverter" . -RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s -X main.version=$DRONE_TAG -X main.commit=$DRONE_COMMIT" -o "faker" ./faker/ +RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s -X main.version=$DRONE_TAG -X main.commit=$DRONE_COMMIT" -o "faker-cli" ./faker/ FROM alfg/ffmpeg USER 1000:1000 COPY --from=builder /app/mediaconverter /mediaconverter -COPY --from=builder /app/faker /faker +COPY --from=builder /app/faker-cli /faker CMD ["/mediaconverter"]