feat: add build sh and dockerfile

This commit is contained in:
Zhiqiang Li
2023-03-24 16:14:56 +08:00
parent 1d15c23d87
commit cdc8d7cda5
2 changed files with 18 additions and 0 deletions

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM alpine:3
COPY ./bin/azure-openai-proxy /usr/bin
ENTRYPOINT ["/usr/bin/azure-openai-proxy"]

13
build.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
VERSION=v1.0.0
rm -rf bin
export GOOS=linux
export GOARCH=amd64
go build -trimpath -ldflags "-s -w" -o bin/azure-openai-proxy ./cmd
docker build -t stulzq/azure-openai-proxy:$VERSION .