fix binary name and folder

Signed-off-by: Ramon Rüttimann <ramon@nine.ch>
master
Ramon Rüttimann 5 years ago
parent f4cddb6a6c
commit 3f5bcffcdd

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

Loading…
Cancel
Save