File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 10
10
- ' v*'
11
11
12
12
jobs :
13
- build :
13
+ buildx :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout
44
44
with :
45
45
context : .
46
46
file : ./hango-api-plane-server/Dockerfile
47
+ # 所需要的体系结构,可以在 Available platforms 步骤中获取所有的可用架构
48
+ platforms : linux/amd64,linux/arm64/v8
47
49
push : ${{ github.ref_type == 'tag' }}
48
50
tags : ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change 1
- FROM hangoio/ tomcat- 8.5:v1.1
1
+ FROM tomcat: 8.5-jdk8
2
2
3
3
ENV TZ=Asia/Shanghai LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
4
4
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
@@ -7,8 +7,10 @@ COPY hango-api-plane-server/setenv.sh $CATALINA_HOME/bin/
7
7
RUN rm -rf webapps/*
8
8
COPY hango-api-plane-server/target/*.war webapps/
9
9
RUN cd /usr/local/tomcat/webapps && \
10
- mv *.war ROOT.war && \
11
- unzip ROOT.war -d ./ROOT && \
12
- rm -f ROOT.war
10
+ mkdir ROOT && \
11
+ mv *.war ROOT/ROOT.war && \
12
+ cd ROOT && \
13
+ jar -xvf ROOT.war && \
14
+ rm -rf *.war
13
15
14
16
ENTRYPOINT ["catalina.sh" , "run" ]
You can’t perform that action at this time.
0 commit comments