utility-comon-test / Dockerfile
sarvenyanik's picture
add deploy settings for huggingface
37f6ce0
Raw
History Blame Contribute Delete
384 Bytes
FROM eclipse-temurin:17-jdk-jammy AS build
WORKDIR /app
COPY mvnw .
COPY .mvn .mvn
COPY pom.xml .
COPY src src
RUN chmod +x mvnw && ./mvnw -q -DskipTests package
FROM eclipse-temurin:17-jre-jammy
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
EXPOSE 9797
ENV JAVA_OPTS=""
ENTRYPOINT ["./entrypoint.sh"]