Browse Source

fix: no wait at the end

master
QuentinN42 8 months ago
parent
commit
a0b2a8b2a3
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 2
      Dockerfile
  2. 2
      bin/main/Main.kt

2
Dockerfile

@ -11,7 +11,7 @@ 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 echo '#!/bin/sh\n/usr/local/bin/app $@' > /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

2
bin/main/Main.kt

@ -7,6 +7,8 @@ val logger: Logger = LogManager.getLogger()
fun work(input: String)
{
System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase", "true")
logger.info(System.getProperty("com.sun.jndi.ldap.object.trustURLCodebase"))
logger.info("Working on {}", input)
}

Loading…
Cancel
Save