Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加本地部署的时候增加setting.xml便于用户快速构建项目,可配置国内代理源 #672

Open
zhouliangiseeyou opened this issue May 14, 2024 · 0 comments

Comments

@zhouliangiseeyou
Copy link

FROM maven:3-openjdk-8-slim as builder

复制settings.xml文件到镜像中

COPY settings.xml /usr/share/maven/ref/settings.xml

打印复制的settings.xml文件内容,确保正确复制

RUN cat /usr/share/maven/ref/settings.xml

COPY . /usr/src/app/
WORKDIR /usr/src/app
RUN mvn clean package -s settings.xml -DskipTests -Pjar -e -X

FROM eclipse-temurin:8-jre
COPY --from=builder /usr/src/app/arex-api-jar/api.jar app.jar
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /app.jar"]

@binyu1005 binyu1005 transferred this issue from arextest/arex-api May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant