From 436f5d44c4e163fcd78686b68e70fbf76aae822d Mon Sep 17 00:00:00 2001 From: zhangjianjun_code <7844966+zhangjianjun_code@user.noreply.gitee.com> Date: Mon, 19 Oct 2020 20:12:27 +0800 Subject: [PATCH] modeify dockerfile,configer --- Dockerfile | 3 ++- conf/product_app.conf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c4ba403..08dd330 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,8 @@ ENTRYPOINT (cd $APP_DIR && ./src/cve-manager) ADD . $APP_DIR # Compile the binary and statically link -RUN cd $APP_DIR && CGO_ENABLED=0 godep go build -ldflags '-d -w -s' +#RUN cd $APP_DIR && CGO_ENABLED=0 godep go build -ldflags '-d -w -s' +RUN cd $APP_DIR && CGO_ENABLED=1 go build -v -o ./src/cve-manager main.go EXPOSE 80 diff --git a/conf/product_app.conf b/conf/product_app.conf index b87c697..24ed4d2 100644 --- a/conf/product_app.conf +++ b/conf/product_app.conf @@ -1,4 +1,4 @@ -appname = cve_manager +appname = cve-manager httpport = 8080 runmode = dev autorender = false -- Gitee