feat: add build files

This commit is contained in:
zhanghelong 2022-12-02 16:04:34 +08:00
parent f8546c6f12
commit b6269c16f2
4 changed files with 20 additions and 1 deletions

3
.gitignore vendored
View File

@ -6,4 +6,5 @@
*.iml
out
gen
data
data
target

6
Dockerfile Normal file
View File

@ -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"

7
build.sh Executable file
View File

@ -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

5
unpack.json Normal file
View File

@ -0,0 +1,5 @@
{
"build_steps": [
"exec ./build.sh"
]
}