-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
FROM logr/oracle-jre8 | ||
|
||
FROM maven:3.5-jdk-8-alpine AS build | ||
MAINTAINER mjj | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# 下载license | ||
RUN wget -P . "https://github.com/6mb/Microsoft-365-Admin/releases/download/v1.3/microsoft-0.0.1-SNAPSHOT.jar" | ||
WORKDIR /src | ||
RUN apk add --no-cache git \ | ||
&& git clone https://github.com/6mb/Microsoft-365-Admin.git \ | ||
&& cd Microsoft-365-Admin \ | ||
&& mvn package -Dmaven.test.skip=true | ||
|
||
# microsoft | ||
FROM logr/8-jre-alpine | ||
COPY --from=build /src/Microsoft-365-Admin/target/microsoft-0.0.1-SNAPSHOT.jar . | ||
RUN mv microsoft-0.0.1-SNAPSHOT.jar microsoft.jar | ||
CMD java -jar microsoft.jar | ||
|
||
#执行 | ||
CMD java -jar microsoft.jar --spring.profile.active=dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters