Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
chainweaver
mira
mira-network-manager
Commits
0d4c16d3
Commit
0d4c16d3
authored
1 year ago
by
chenxuanhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dockerfile
parent
e34523da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
Dockerfile
Dockerfile
+3
-11
No files found.
Dockerfile
View file @
0d4c16d3
#**********编译程序镜像*********
FROM
golang:1.22-rc
as builder
FROM
golang:1.22-rc
#切换到镜像中的工作目录,同cd命令
WORKDIR
/home/chainmaker-mpc-network
...
...
@@ -11,16 +11,8 @@ RUN go env -w GOPROXY=https://goproxy.cn,direct
ADD
./ /home/chainmaker-mpc-network
RUN
cd
/home/chainmaker-mpc-network
&&
go mod tidy
&&
\
go build
-o
port server.go
&&
mv
port /home/chainmaker-mpc-network
#**********执行程序镜像*********
FROM
alpine:latest
WORKDIR
/home/chainmaker-mpc-network
ADD
port /home/chainmaker-mpc-network
COPY
conf/config.yaml /home/chainmaker-mpc-network/conf/config.yaml
go build
-o
port server.go
#对外暴露的端口
EXPOSE
8090
CMD
["/home/chainmaker-mpc-network/port"]
\ No newline at end of file
CMD
["/home/chainmaker-mpc-network/port"]
This diff is collapsed.
Click to expand it.
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