spring-gemini-chat / Dockerfile
Phoenix21's picture
Update Dockerfile
596c700 verified
raw
history blame contribute delete
262 Bytes
FROM openjdk:17-jdk-slim
WORKDIR /app
# Copy the jar file
COPY target/*.jar app.jar
# Expose port
EXPOSE 7860
# Set environment variables
ENV SERVER_PORT=7860
ENV SPRING_PROFILES_ACTIVE=prod
# Run the application
ENTRYPOINT ["java", "-jar", "/app/app.jar"]