Commit 269119c9 by weitong

fix: 修改打包配置

parent 3b73b319
FROM java:8
EXPOSE 8080
VOLUME /tmp
ADD renren-fast.jar /app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","/app.jar"]
FROM openjdk:8-jdk-alpine
WORKDIR /app
ENV TZ="Asia/Shanghai"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN echo "https://mirrors.aliyun.com/alpine/v3.3/main" > /etc/apk/repositories
RUN echo "https://mirrors.aliyun.com/alpine/v3.3/community" >> /etc/apk/repositories
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN apk add --update ttf-dejavu fontconfig && rm -rf /var/cache/apk/*
ENV JVM_OPTS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0"
ENV JAVA_OPTS=""
COPY target/*.jar application.jar
ENTRYPOINT java $JVM_OPTS $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app/application.jar
......@@ -287,16 +287,22 @@
<dependency>
<groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/libs/barcode4j-2.2.0-SNAPSHOT.jar</systemPath>
<version>2.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j-light</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/libs/barcode4j-light-2.2.0-SNAPSHOT.jar</systemPath>
<version>2.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j-spi</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/libs/barcode4j-spi-2.2.0-SNAPSHOT.jar</systemPath>
<version>2.2.0-SNAPSHOT</version>
</dependency>
......@@ -380,7 +386,7 @@
<repository>
<id>public</id>
<name>aliyun nexus</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
......@@ -390,7 +396,7 @@
<pluginRepository>
<id>public</id>
<name>aliyun nexus</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment