Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-qywx-self
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
haoban3.0
gic-qywx-self
Commits
61ca21c3
Commit
61ca21c3
authored
Oct 25, 2024
by
折木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
好办自建服务增加duubo服务
parent
ceb67378
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
Dockerfile
Dockerfile
+25
-0
No files found.
Dockerfile
0 → 100644
View file @
61ca21c3
FROM
registry.cn-shanghai.aliyuncs.com/demo-imges/java-base-image
RUN
yum install
-y
curl
RUN
curl
-o
/etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
RUN
yum update
-y
RUN
yum groupinstall
-y
"Development Tools"
RUN
yum install gcc make autoconf automake libtool
-y
COPY
jemalloc-5.3.0 /usr/local/jemalloc-5.3.0
RUN
cd
/usr/local/jemalloc-5.3.0/
&&
./configure
--prefix
=
/usr/local
&&
make
&&
make install
RUN
cat
/etc/ld.so.conf
RUN
sed
-i
'/^include \/etc\/ld.so.conf.d\/.*\.conf$/a /usr/local/lib'
/etc/ld.so.conf
ENV
export LD_PRELOAD=/usr/local/lib/libjemalloc.so
ENV
export MALLOC_CONF=narenas:1,lg_tcache_max:13,dirty_decay_ms:1000,muzzy_decay_ms:0
RUN
ldconfig
ADD
java.tar.gz /usr/local
RUN
echo
$PATH
RUN
java
-version
COPY
./target/gic-qywx-self.jar /usr/local/app/gic-qywx-self.jar
# 创建必要的目录结构和文件权限
RUN
mkdir
-p
/var/tmp/nginx/client
&&
\
mkdir
-p
/opt/settings
&&
\
chmod
-R
777 /opt/settings
&&
\
echo
"env=PRO"
>
/opt/settings/server.properties
EXPOSE
8990
# 设置容器启动命令,运行 Jar 文件
ENTRYPOINT
["java", "-jar", "/usr/local/app/gic-qywx-self.jar"]
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