Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
system_pay
Project
Project
Details
Activity
Releases
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
王沛
system_pay
Commits
39d07323
Commit
39d07323
authored
Jun 20, 2023
by
wangp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.6->1.7
parent
66d764c5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
554 deletions
+35
-554
Dockerfile
Dockerfile
+4
-4
go.mod
go.mod
+23
-1
go.sum
go.sum
+7
-549
run-dev.sh
run-dev.sh
+1
-0
No files found.
Dockerfile
View file @
39d07323
...
...
@@ -14,7 +14,8 @@ WORKDIR /go/src/system_pay
COPY
. .
# go env为查看go的环境变量, go build -o server . 为打包项目,二进制
RUN
go
env
&&
go mod tidy
&&
go build
-o
server .
# RUN go env && go mod tidy && go build -o server .
RUN
go
env
&&
go mod tidy
&&
go get
-u
golang.org/x/sys
&&
go build
-o
server .
# ======= 以下为多阶段构建 =======
...
...
@@ -31,11 +32,10 @@ RUN echo "http://mirrors.aliyun.com/alpine/v3.4/main/" > /etc/apk/repositories \
WORKDIR
/go/src/system_pay
# 拷贝配置文件到当前工作目录
COPY
--from=0 /go/src/system_pay/conf/test ./conf
COPY
--from=0 /go/src/system_pay/vendor ./vendor
COPY
--from=0 /go/src/system_pay/conf/test ./conf/test
# 拷贝打包好的server二进制文件到当前工作目录
#
COPY --from=0 /go/src/system_pay/server ./
COPY
--from=0 /go/src/system_pay/server ./
# 拷贝配置文件到当前工作目录
# COPY --from=0 /go/src/system_pay/conf ./conf
...
...
go.mod
View file @
39d07323
module system_pay
go 1.1
6
go 1.1
7
require (
github.com/astaxie/beego v1.12.3
github.com/pkg/errors v0.9.1
github.com/smartystreets/goconvey v1.8.0
)
require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/jtolds/gls v4.20.0+incompatible // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/prometheus/client_golang v1.7.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.10.0 // indirect
github.com/prometheus/procfs v0.1.3 // indirect
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
github.com/smartystreets/assertions v1.13.1 // indirect
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.3.3 // indirect
google.golang.org/protobuf v1.23.0 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
)
go.sum
View file @
39d07323
This diff is collapsed.
Click to expand it.
run-dev.sh
View file @
39d07323
export
runmode
=
dev
export
BEEGO_MODE
=
dev
bee run
-gendoc
=
true
-downdoc
=
true
\ 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