2022-03-25 22:19:32 +00:00
|
|
|
img_user = a
|
|
|
|
img_name = cory
|
|
|
|
img_tag = local
|
|
|
|
|
|
|
|
cory: clean
|
2022-03-25 22:20:50 +00:00
|
|
|
go build -o ./cory ./cmd/cory-bin
|
2022-03-25 22:19:32 +00:00
|
|
|
|
|
|
|
docker:
|
|
|
|
DOCKER_BUILDKIT=1 docker build -f server.Dockerfile -t $(img_user)/$(img_name):$(img_tag) .
|
|
|
|
|
|
|
|
server-run: docker
|
|
|
|
docker run -p 3333:3333 $(img_user)/$(img_name):$(img_tag) --serve
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf cory
|