Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eureka-server
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
wangguangchao
eureka-server
Commits
7c11cf0a
Commit
7c11cf0a
authored
Nov 13, 2023
by
wangguangchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打包方式
parent
abd75aa8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
9 deletions
+33
-9
Dockerfile
Dockerfile
+24
-9
Dockerfile.bak
Dockerfile.bak
+9
-0
No files found.
Dockerfile
View file @
7c11cf0a
# 基于哪个镜像
From
java:8
# 复制文件到容器
ADD
./target/eureka-server-1.0-SNAPSHOT.jar /app.jar
# 声明需要暴露的端口
EXPOSE
8769
# 配置容器启动后执行的命令
ENTRYPOINT
java ${JAVA_OPTS} -jar /app.jar
\ No newline at end of file
FROM
adoptopenjdk/openjdk8:x86_64-alpine-jdk8u382-b05
MAINTAINER
R&D(WH)@brilliance.com.cn
USER
root
ENV
APP_NAME="eureka-server" \
WORKDIR=/workspace
RUN
sed
-i
's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g'
/etc/apk/repositories
\
&&
apk update
\
&&
apk add unzip
ADD
./target/eureka-server-1.0-SNAPSHOT.zip .
RUN
echo
"starting RUN command"
&&
\
unzip
-qo
eureka-server-1.0-SNAPSHOT.zip
-d
$WORKDIR
&&
\
chmod
-R
772
$WORKDIR
&&
\
chmod 772
$WORKDIR
/config
&&
\
chmod 772
$WORKDIR
/bin
WORKDIR
/workspace
EXPOSE
8769
\ No newline at end of file
Dockerfile.bak
0 → 100644
View file @
7c11cf0a
# 基于哪个镜像
From java:8
# 复制文件到容器
ADD ./target/eureka-server-1.0-SNAPSHOT.jar /app.jar
# 声明需要暴露的端口
EXPOSE 8769
# 配置容器启动后执行的命令
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
\ No newline at end of file
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