feat: add build files
This commit is contained in:
parent
f8546c6f12
commit
b6269c16f2
|
@ -6,4 +6,5 @@
|
|||
*.iml
|
||||
out
|
||||
gen
|
||||
data
|
||||
data
|
||||
target
|
|
@ -0,0 +1,6 @@
|
|||
FROM registry.cn-hangzhou.aliyuncs.com/idmesh/public:alpine-3.14-asia-shanghai
|
||||
|
||||
WORKDIR /app/
|
||||
ADD target/login-sim .
|
||||
|
||||
ENTRYPOINT "./login-sim"
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# compile code
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./target/login-sim .
|
||||
chmod +x ./target/login-sim
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"build_steps": [
|
||||
"exec ./build.sh"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue