1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| FROM arm64v8/centos:7
MAINTAINER Nissan
ADD jdk-18.0.2.1_linux-aarch64_bin.tar.gz /jdk/
COPY fonts/* /usr/share/fonts/chinese/
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && yum install dejavu-sans-fonts mkfontscale fontconfig -y && yum clean all && cd /usr/share/fonts/chinese && mkfontscale && mkfontdir && fc-cache -fv && mkdir -p /data/engine
ENV JAVA_HOME=/jdk/jdk-18.0.2.1
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH=$JAVA_HOME/bin:$PATH
ENV LANG en_US.UTF-8
COPY ./nacos /root/nacos
WORKDIR /root/nacos
EXPOSE 8848
ENV MODE=standalone
ENV SPRING_DATASOURCE_PLATFORM=derby
ENTRYPOINT ["java","-Dnacos.standalone=true","-jar","target/nacos-server.jar"]
#ENTRYPOINT ["yum","update"]
|