FROM openjdk:17-jdk-alpine RUN apk update RUN apk upgrade COPY target/resource-service-api-0.1.jar /app/resource-service-api-0.1.jar WORKDIR /app # ENTRYPOINT ["java","-jar","/app/resource-service-api-0.1.jar"] # docker image build -t resource-service-api:latest . # docker run -p80:8181 resource-service-api:latest