Simplyfy docker run arguments

Filenames can be now passed standalone, without mnt/ prefix.
This commit is contained in:
Jan Stárek
2019-10-09 16:27:08 +02:00
parent 4c31de7b41
commit 4dfa43ec37
3 changed files with 28 additions and 22 deletions

View File

@@ -1,6 +1,8 @@
# We need .NET Core image for running parser
FROM mcr.microsoft.com/dotnet/core/sdk:2.1
ENV container=true
# Expose port for process monitor
EXPOSE 26002/tcp
EXPOSE 26002/udp
@@ -15,11 +17,10 @@ COPY fuzzer /usr/local/fuzzer/fuzzer
COPY parser /usr/local/fuzzer/parser
COPY reporter /usr/local/fuzzer/reporter
# And finally, copy the run script
COPY run.sh /usr/local/bin/
# Set working directory
WORKDIR /usr/local/fuzzer/
COPY run.sh /usr/local/fuzzer/run.sh
# Set run script as an entry point of the container
ENTRYPOINT ["run.sh"]
ENTRYPOINT ["/usr/local/fuzzer/run.sh"]