12345678910111213141516 |
- PKG = $(shell cat package.json | grep 'name' | sed -e 's/ "name": "//g' -e 's/",//g')
- VERSION = $(shell cat package.json | grep 'version' | sed -e 's/ "version": "//g' -e 's/",//g')
- docker-build:
- docker build . -t $(PKG):$(VERSION)
- docker-buildx-build:
- docker buildx build --platform linux/amd64 . -t $(PKG):$(VERSION) --load
- docker-run:
- docker run -d -p 80:80 $(PKG):$(VERSION)
- docker-build-run: docker-build docker-run
|