Skip to content

Commit

Permalink
Merge pull request #6 from 6mb/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
6mb authored Nov 26, 2020
2 parents 9f92d96 + 50181f7 commit c7ba7af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions Dockerfile
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
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ spring:
application:
name: Microsoft 365 Admin
profiles: # 默认的profile为dev
active: cit
active: dev

logging:
level:
Expand Down

0 comments on commit c7ba7af

Please sign in to comment.