新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 0d4c16d3 authored by chenxuanhui's avatar chenxuanhui

fix dockerfile

parent e34523da
#**********编译程序镜像*********
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"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment