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.

18 lines
433 B

10 months ago
FROM openjdk:8 AS build
WORKDIR /usr/local/src/
COPY . /usr/local/src/
RUN ./gradlew installDist
10 months ago
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 $@' > /entrypoint.sh
10 months ago
RUN chmod +x /entrypoint.sh
10 months ago
10 months ago
ENTRYPOINT [ "/entrypoint.sh" ]