Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
269119c9
Commit
269119c9
authored
Oct 26, 2022
by
weitong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改打包配置
parent
3b73b319
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
Dockerfile
Dockerfile
+13
-7
pom.xml
pom.xml
+8
-2
No files found.
Dockerfile
View file @
269119c9
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
pom.xml
View file @
269119c9
...
...
@@ -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>
http
s
://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>
http
s
://maven.aliyun.com/nexus/content/groups/public/
</url>
<releases>
<enabled>
true
</enabled>
</releases>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment