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
1ff9443c
Commit
1ff9443c
authored
1 year ago
by
chenxuanhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify WORKDIR
parent
833a1e7c
master
develop
v1.1.0
v1.0.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Dockerfile
Dockerfile
+6
-7
No files found.
Dockerfile
View file @
1ff9443c
...
...
@@ -2,26 +2,25 @@
FROM
golang:1.22-rc as builder
#切换到镜像中的工作目录,同cd命令
WORKDIR
/home/chainmaker-mpc-network
WORKDIR
/home/chainmaker-mpc-network
/port
#配置go依赖环境
RUN
go
env
-w
GO111MODULE
=
on
RUN
go
env
-w
GOPROXY
=
https://goproxy.cn,direct
ADD
./ /home/chainmaker-mpc-network
ADD
./ /home/chainmaker-mpc-network
/port
RUN
cd
/home/chainmaker-mpc-network
&&
go mod tidy
&&
\
RUN
cd
/home/chainmaker-mpc-network
/port
&&
go mod tidy
&&
\
go build
-o
port server.go
#**********执行程序镜像*********
FROM
alpine:latest
#切换到镜像中的工作目录,同cd命令
WORKDIR
/home/chainmaker-mpc-network
ADD
port /home/chainmaker-mpc-network
COPY
conf/config.yaml /home/chainmaker-mpc-network/conf/config.yaml
WORKDIR
/home/chainmaker-mpc-network/port
ADD
port /home/chainmaker-mpc-network/port
COPY
conf/config.yaml /home/chainmaker-mpc-network/port/conf/config.yaml
#对外暴露的端口
EXPOSE
8090
...
...
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