-
DO: Read this best practices doc instead of/in addition to this wiki.
-
DO: Put
apt-get update
andinstall
commands in the sameRUN
line, so that theupdate
gets run again each time you add something new toinstall
.RUN apt-get -y update && apt-get install -y fortune \ git \ python-pip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* To use JSON Server to serve API responses you will need to do the following: | |
* 1. create a db.json. | |
* 2. In your browser, set the following local storage key-value pairs: | |
* a) set use-json-server to true (unquoted). This will tell Angular to route your API requests to JSON Server. | |
* b) (optional) set json-server-blacklist to an array of double quoted string urls starting with slashes. | |
* This will tell Angular which urls (if any) to serve with the web server. | |
* @example | |
* ["/my-special-endpoint", "/my/resource"] | |
*/ |
Place the following in .git/hooks/pre-commit
:
#!/bin/sh
node ./pre-commit.js
exit $?
Place the following in pre-commit.js
in the root of your repo: