Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Copy venom binary to standard practice location #813

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
FROM alpine:3.16
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"]
ENTRYPOINT ["/usr/local/bin/venom"]
CMD ["run", "./tests/*.y*ml"]