1*33edd672SMark# Copyright 2021 Code Intelligence GmbH 2*33edd672SMark# 3*33edd672SMark# Licensed under the Apache License, Version 2.0 (the "License"); 4*33edd672SMark# you may not use this file except in compliance with the License. 5*33edd672SMark# You may obtain a copy of the License at 6*33edd672SMark# 7*33edd672SMark# http://www.apache.org/licenses/LICENSE-2.0 8*33edd672SMark# 9*33edd672SMark# Unless required by applicable law or agreed to in writing, software 10*33edd672SMark# distributed under the License is distributed on an "AS IS" BASIS, 11*33edd672SMark# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*33edd672SMark# See the License for the specific language governing permissions and 13*33edd672SMark# limitations under the License. 14*33edd672SMark 15*33edd672SMarkFROM cifuzz/jazzer as jazzer 16*33edd672SMark 17*33edd672SMarkFROM ubuntu:20.04 18*33edd672SMark 19*33edd672SMarkENV DEBIAN_FRONTEND=noninteractive 20*33edd672SMarkRUN apt-get update && apt-get install -y curl openjdk-17-jdk-headless 21*33edd672SMark 22*33edd672SMarkWORKDIR /app 23*33edd672SMarkRUN curl -L 'https://github.com/coursier/coursier/releases/download/v2.0.16/coursier.jar' -o coursier.jar && \ 24*33edd672SMark chmod +x coursier.jar 25*33edd672SMark 26*33edd672SMarkCOPY entrypoint.sh /app/ 27*33edd672SMarkCOPY --from=jazzer /app/* /app/ 28*33edd672SMark 29*33edd672SMarkWORKDIR /fuzzing 30*33edd672SMarkENTRYPOINT ["/app/entrypoint.sh"] 31