From b9b4ec55dcb554d4c52f1935452f8642f5a8b83c Mon Sep 17 00:00:00 2001 From: Ivan Velasco Date: Mon, 2 Sep 2024 16:40:22 -0600 Subject: [PATCH] fix: Copy the venom binary to the appropriate directory Signed-off-by: Ivan Velasco --- Dockerfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1d4459d4..be56cff3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,19 @@ FROM alpine:3.16 + RUN apk update && \ - apk --no-cache add tzdata && \ - apk --no-cache add ca-certificates && rm -rf /var/cache/apk/* + apk --no-cache add tzdata ca-certificates && \ + rm -rf /var/cache/apk/* -COPY dist/venom.linux-amd64 /usr/local/venom +COPY dist/venom.linux-amd64 /usr/local/bin/venom +RUN chmod +x /usr/local/bin/venom VOLUME /workdir/results VOLUME /workdir/tests WORKDIR /workdir -ENTRYPOINT ["/usr/local/venom"] - -ENV VENOM_OUTPUT_DIR=/workdir/results -ENV VENOM_LIB_DIR=/workdir/tests/lib -ENV VENOM_VERBOSE=1 +ENV VENOM_OUTPUT_DIR=/workdir/results \ + VENOM_LIB_DIR=/workdir/tests/lib \ + VENOM_VERBOSE=1 -CMD [ "run", "./tests/*.y*ml"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/venom"] +CMD ["run", "./tests/*.y*ml"] \ No newline at end of file