-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (45 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
53 lines (45 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM eclipse-temurin:25-jdk-jammy AS builder
WORKDIR /app
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
COPY gradlew settings.gradle build.gradle /app/
COPY gradle /app/gradle
COPY src /app/src
RUN mkdir -p /ms-playwright
RUN ./gradlew --no-daemon playwrightInstallChromium
RUN ./gradlew --no-daemon bootJar
FROM eclipse-temurin:25-jre-jammy
WORKDIR /app
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
# Playwright runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libnss3 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libcups2 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libasound2 \
libpangocairo-1.0-0 \
libpango-1.0-0 \
libcairo2 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxext6 \
libxss1 \
libxtst6 \
libdrm2 \
libgtk-3-0 \
libxkbcommon0 \
libglib2.0-0 \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /ms-playwright /ms-playwright
COPY --from=builder /app/build/libs/firefly-1.0.0.jar /app/app.jar
ENTRYPOINT ["java","-jar","/app/app.jar"]