4 核 8G 同时跑协会站点、PlayEdu 和估价智能体,并让门户专家页底色透出页面背景。 Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
718 B
Docker
22 lines
718 B
Docker
FROM eclipse-temurin:17-jre-jammy-amd64
|
|
|
|
RUN sed -i \
|
|
-e 's|http://archive.ubuntu.com|http://mirrors.aliyun.com|g' \
|
|
-e 's|http://security.ubuntu.com|http://mirrors.aliyun.com|g' \
|
|
/etc/apt/sources.list \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends nginx curl \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& rm -f /etc/nginx/sites-enabled/default
|
|
|
|
COPY nginx.conf /etc/nginx/sites-enabled/default
|
|
COPY app.jar /app/api/app.jar
|
|
COPY pc /app/pc
|
|
COPY h5 /app/h5
|
|
COPY admin /app/admin
|
|
|
|
ENV JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport -XX:InitialRAMPercentage=20 -XX:MaxRAMPercentage=60"
|
|
EXPOSE 9898 9800 9801 9900
|
|
|
|
CMD ["sh", "-c", "nginx && exec java -jar /app/api/app.jar"]
|