This commit is contained in:
parent
10c7930585
commit
27e647d0d7
16
Dockerfile
16
Dockerfile
|
|
@ -7,6 +7,18 @@
|
||||||
#RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
|
#RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
|
||||||
#
|
#
|
||||||
#FROM docker.io/eclipse-temurin:21-jre-alpine
|
#FROM docker.io/eclipse-temurin:21-jre-alpine
|
||||||
|
#WORKDIR /app
|
||||||
|
#COPY target/dependency/BOOT-INF/lib /app/lib
|
||||||
|
#COPY target/dependency/META-INF /app/META-INF
|
||||||
|
#COPY target/dependency/BOOT-INF/classes /app
|
||||||
|
#RUN ls
|
||||||
|
|
||||||
|
#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
#RUN echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
|
#ENTRYPOINT ["java","-cp","/app:/app/lib/*","jj.tech.paolu.Application","--spring.profiles.active=prod"]
|
||||||
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/playwright/java:v1.47.0-noble-amd64
|
FROM mcr.microsoft.com/playwright/java:v1.47.0-noble-amd64
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY target/dependency/BOOT-INF/lib /app/lib
|
COPY target/dependency/BOOT-INF/lib /app/lib
|
||||||
|
|
@ -14,7 +26,7 @@ COPY target/dependency/META-INF /app/META-INF
|
||||||
COPY target/dependency/BOOT-INF/classes /app
|
COPY target/dependency/BOOT-INF/classes /app
|
||||||
RUN ls
|
RUN ls
|
||||||
|
|
||||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
RUN apt-get install -yq tzdata
|
||||||
RUN echo "Asia/Shanghai" > /etc/timezone
|
ENV TZ="Asia/Shanghai"
|
||||||
|
|
||||||
ENTRYPOINT ["java","-cp","/app:/app/lib/*","jj.tech.paolu.Application","--spring.profiles.active=prod"]
|
ENTRYPOINT ["java","-cp","/app:/app/lib/*","jj.tech.paolu.Application","--spring.profiles.active=prod"]
|
||||||
Loading…
Reference in New Issue
Block a user