This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
Lateinicus/backend/Makefile
Alexander Polynomdivision 5d38f46aeb feat: Add a compose file
2018-09-28 23:33:28 +02:00

20 lines
366 B
Makefile

node_modules:
npm install
WEBPACK_BUILD := ./node_modules/.bin/webpack-cli --config webpack.config.js
.PHONY: prod
prod:
${WEBPACK_BUILD} --env.NODE_ENV=production
.PHONY: dev
dev:
${WEBPACK_BUILD} --env.NODE_ENV=development
.PHONY: start
start: dev
node dist/bundle.js
dockerfile: dist/bundle.js
sudo docker build -t lateinicus/server -f Dockerfile dist/