Log4Shell
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
454 B

FROM openjdk:8 AS build
WORKDIR /usr/local/src/
COPY . /usr/local/src/
RUN ./gradlew installDist
FROM openjdk:8
ENV APP_NAME victim
COPY --from=build /usr/local/src/build/install/${APP_NAME}/bin/${APP_NAME} /usr/local/bin/app
COPY --from=build /usr/local/src/build/install/${APP_NAME}/lib/ /usr/local/lib/
RUN echo '#!/bin/sh\n/usr/local/bin/app $@ && tail -f /dev/null' > /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]