mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
.devcontainer
.github
.vscode
cmd
dev
runtime
build
exec
fmt
go
lint
rebuild
rebuild.input
start
internal
pkg
plugins
runtime
xorg
.editorconfig
.gitattributes
.gitignore
Dockerfile
Dockerfile.bookworm
Dockerfile.nvidia
Dockerfile.nvidia.bookworm
LICENSE
README.md
build
go.mod
go.sum
neko.go
openapi.yaml
15 lines
463 B
Bash
Executable File
15 lines
463 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ "$(docker images -q neko_server_build 2> /dev/null)" == "" ]; then
|
|
echo "Image 'neko_server_build' not found. Run ./build first."
|
|
exit 1
|
|
fi
|
|
|
|
#
|
|
# build server
|
|
docker run --rm -it \
|
|
-v "${PWD}/../:/src" \
|
|
--entrypoint="/bin/bash" \
|
|
neko_server_build -c '[ -f ./bin/golangci-lint ] || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.31.0;./bin/golangci-lint run';
|