-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (25 loc) · 1.33 KB
/
Dockerfile
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
ARG IMG_TAG=v3.x
FROM registry.fit2cloud.com/metersphere/metersphere:${IMG_TAG} as metersphere
FROM registry.fit2cloud.com/metersphere/task-runner:${IMG_TAG} as task-runner
FROM registry.fit2cloud.com/metersphere/result-hub:${IMG_TAG} as result-hub
FROM registry.fit2cloud.com/metersphere/alpine-openjdk21-jre as builder
COPY --from=metersphere /app /metersphere
COPY --from=task-runner /app /task-runner
COPY --from=result-hub /app /result-hub
COPY shells /shells
RUN chmod +x /shells/comm.sh && /shells/comm.sh
#
FROM registry.fit2cloud.com/metersphere/alpine-openjdk21-jre
COPY --from=builder /standalone /standalone
COPY --from=builder /metersphere /metersphere
COPY --from=builder /task-runner /task-runner
COPY --from=builder /result-hub /result-hub
COPY --from=task-runner /opt/jmeter /opt/jmeter
COPY --from=metersphere /tmp/MS_VERSION /tmp/MS_VERSION
ENV AB_OFF=true
ENV MS_PACKAGE_TYPE=enterprise
ENV JAVA_OPTIONS="-Dfile.encoding=utf-8 -Djava.awt.headless=true --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
COPY shells /shells
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add libc6-compat && chmod +x /shells/*.sh
ENTRYPOINT ["sh", "/shells/start.sh"]