-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 569 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 569 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM gradle:7.6-jdk17 AS builder
WORKDIR /app
COPY . .
ENV VENDOR_PATH=vendor
RUN ./gradlew clean build -x test --no-daemon
FROM eclipse-temurin:17-jre-jammy
WORKDIR /app
RUN apt-get update && apt-get install -y \
imagemagick \
libmagickwand-6.q16-6 \
libmagickcore-6.q16-6 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/build/libs/*.jar app.jar
COPY --from=builder /app/vendor /app/vendor
ENV VENDOR_PATH=/app/vendor
ENV LD_LIBRARY_PATH=/app/vendor
EXPOSE 8080
ENTRYPOINT ["java", "-Djava.library.path=/app/vendor", "-jar", "app.jar"]