add: add Dockerfile
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,7 +1,7 @@
|
||||
include .env
|
||||
include .env.local
|
||||
|
||||
.PHONY: proto
|
||||
.PHONY: build proto
|
||||
|
||||
run:
|
||||
go run cmd/mp-server/main.go \
|
||||
@@ -15,6 +15,13 @@ clean:
|
||||
|
||||
all: api
|
||||
|
||||
build:
|
||||
CGO_ENABLED=0 GOOS="linux" GOARCH="amd64" \
|
||||
go build -o ./build/app -ldflags="-s -w" -tags timetzdata ./cmd/mp-server
|
||||
upx build/app
|
||||
docker build -t esinio/weixin:mp-auth .
|
||||
rm build/app
|
||||
|
||||
docker.push:
|
||||
docker push esinio/weixin:oauth2
|
||||
|
||||
|
Reference in New Issue
Block a user