You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
1.9 KiB

FROM 10.103.1.9:5000/ubuntu:latest
ADD target/health-user-server.jar app.jar
ADD config.json config.json
ADD config2.json config2.json
ADD entrypoint.sh /usr/bin/entrypoint.sh
RUN chmod 777 /usr/bin/entrypoint.sh
RUN echo "nameserver 192.168.1.87" > /etc/resolv.conf
## Install Java 8
#RUN apt-get update && \
# apt-get install -y --no-install-recommends openjdk-8-jdk && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/*
# RUN cat /etc/resolv.conf
# RUN echo "nameserver 114.114.114.114" > /etc/resolv.conf
# RUN cat /etc/resolv.conf
# RUN apt-get update && apt-get install -y ca-certificates wget
# RUN wget http://192.168.1.88:9001/server-source/jdk-8u411-linux-x64.tar.gz
# RUN tar -xzvf jdk-8u411-linux-x64.tar.gz && mv jdk1.8.0_411/ /usr/local/jdk1.8.0_411 && chmod +x /usr/local/jdk1.8.0_411/bin/java
# RUN apt-get install --no-install-recommends -y ca-certificates libc6
## Set JAVA_HOME environment variable
ENV JAVA_HOME /usr/local/jdk1.8.0_411
ENV PATH $PATH:$JAVA_HOME/bin
# RUN java -version
# Verify installation
EXPOSE 8081
MAINTAINER zmm
ENV LD_LIBRARY_PATH=/AIDetectorJava/
## Dockerfile所在的目录或其子目录中,‌那么Docker将无法访问这些文件
#RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
#RUN echo "nameserver 114.114.114.114" > /etc/resolv.conf
#FROM alpine-java:8
#WORKDIR /ms
#MAINTAINER zmm
##COPY target/*.jar /ms/app.jar
#ENTRYPOINT java -jar /app.jar
#ENV DEBIAN_FRONTEND noninteractive
#COPY src/main/resources/config_prod /ms/config_prod
#COPY setEnvironment.sh /ms/setEnvironment.sh
#RUN chmod +x /ms/setEnvironment.sh
#COPY version.txt /ms/version.txt
#COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
#RUN chmod +x /usr/bin/docker-entrypoint.sh
#ENTRYPOINT ["docker-entrypoint.sh"]
# 使用 Alpine Linux 作为最终的基础镜像
#FROM alpine:latest
# 安装 GLIBC 和其他运行时库
#RUN apk --no-cache add ca-certificates libc6-compat