2023-05-18 00:58:15 +02:00
|
|
|
# Build jbig2enc in a separate stage
|
2023-06-08 21:25:55 +02:00
|
|
|
FROM bellsoft/liberica-openjdk-alpine:17
|
2023-05-18 00:58:15 +02:00
|
|
|
|
|
|
|
# Copy the application JAR file
|
|
|
|
COPY build/libs/*.jar app.jar
|
|
|
|
|
|
|
|
# Expose the application port
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2023-08-27 14:45:37 +02:00
|
|
|
|
|
|
|
|
2023-05-18 00:58:15 +02:00
|
|
|
# Set environment variables
|
2023-06-10 01:46:44 +02:00
|
|
|
ENV GROUPS_TO_REMOVE=CLI
|
2023-08-27 14:45:37 +02:00
|
|
|
ENV ENABLE_SECURITY=false
|
2023-05-18 00:58:15 +02:00
|
|
|
|
|
|
|
# Run the application
|
|
|
|
CMD ["java", "-jar", "/app.jar"]
|