修改dockerfile文件

This commit is contained in:
lulz1 2024-04-22 16:28:59 +08:00
parent 562188dd35
commit 14a4e28eed
2 changed files with 10 additions and 0 deletions

View File

@ -9,5 +9,15 @@ RUN sed -i 's/jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1/jdk.tls.disabledA
FROM base AS final FROM base AS final
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN mkdir ./arthas &&\
tar -zxvf ./arthas.tar.gz -C ./arthas/ &&\
rm -rf /home/admin/.arthas/lib/* &&\
cd ./arthas/arthas-bin &&\
chmod +x ./install-local.sh &&\
chmod +x ./as.sh
RUN cd ./arthas/arthas-bin && ./install-local.sh
RUN rm -f /app/Dockerfile RUN rm -f /app/Dockerfile
ENTRYPOINT ["java", "-jar", "app.jar"] ENTRYPOINT ["java", "-jar", "app.jar"]

Binary file not shown.