FROM openjdk:8-jdk-alpine
|
ENV LANG en_US.UTF-8
|
ENV LANGUAGE en_US:en
|
ENV LC_ALL en_US.UTF-8
|
ENV TIME_ZONE Asia/Shanghai
|
RUN apk add --no-cache tzdata \
|
############设置时区
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
&& ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime
|
RUN apk add --no-cache font-adobe-100dpi ttf-dejavu fontconfig
|
WORKDIR application
|
ARG JAR_FILE=target/*.jar
|
COPY ${JAR_FILE} application.jar
|
COPY src/main/resources/cert /root/test/hxsl/cert
|
|
EXPOSE 8086
|
|
ENTRYPOINT ["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap", "-jar","/application/application.jar","--spring.profiles.active=test"]
|