Commit 269119c9 by weitong

fix: 修改打包配置

parent 3b73b319
FROM java:8 FROM openjdk:8-jdk-alpine
EXPOSE 8080 WORKDIR /app
ENV TZ="Asia/Shanghai"
VOLUME /tmp RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ADD renren-fast.jar /app.jar RUN echo "https://mirrors.aliyun.com/alpine/v3.3/main" > /etc/apk/repositories
RUN bash -c 'touch /app.jar' RUN echo "https://mirrors.aliyun.com/alpine/v3.3/community" >> /etc/apk/repositories
ENTRYPOINT ["java","-jar","/app.jar"] 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 @@ ...@@ -287,16 +287,22 @@
<dependency> <dependency>
<groupId>net.sf.barcode4j</groupId> <groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j</artifactId> <artifactId>barcode4j</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/libs/barcode4j-2.2.0-SNAPSHOT.jar</systemPath>
<version>2.2.0-SNAPSHOT</version> <version>2.2.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.sf.barcode4j</groupId> <groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j-light</artifactId> <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> <version>2.2.0-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.sf.barcode4j</groupId> <groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j-spi</artifactId> <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> <version>2.2.0-SNAPSHOT</version>
</dependency> </dependency>
...@@ -380,7 +386,7 @@ ...@@ -380,7 +386,7 @@
<repository> <repository>
<id>public</id> <id>public</id>
<name>aliyun nexus</name> <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> <releases>
<enabled>true</enabled> <enabled>true</enabled>
</releases> </releases>
...@@ -390,7 +396,7 @@ ...@@ -390,7 +396,7 @@
<pluginRepository> <pluginRepository>
<id>public</id> <id>public</id>
<name>aliyun nexus</name> <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> <releases>
<enabled>true</enabled> <enabled>true</enabled>
</releases> </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