skip to Main Content

Docker – Kubernetes doesn't find a jar file

I'm using this Dockerfile configuration FROM openjdk:17-alpine ARG APP_HOME=/app WORKDIR $APP_HOME COPY ./target/ws-exec.jar ws.jar ENV JAVA_OPTS="-Dspring.profiles.active=prod -Dspring.application.name=words" ENTRYPOINT java $JAVA_OPTS -jar ./ws.jar $JAVA_ARGS After deploying it to minikube, I see the only log: Error: Unable to access jarfile /ws.jar. I've…

VIEW QUESTION
Back To Top
Search