This file contains hidden or 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
let return = (a: 'a) : option('a) => Some(a); | |
let bind = (m: option('a), f: 'a => option('b)) : option('b) => | |
switch (m) { | |
| None => None | |
| Some(a) => f(a) | |
}; | |
let (>>=) = bind; |
This file contains hidden or 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
FROM zackferrofields/app:base as builder | |
COPY . . | |
RUN yarn \ | |
&& yarn build | |
FROM nginx | |
COPY nginx/conf.d/ /etc/nginx/conf.d/ | |
COPY nginx/default.d/dashboard.conf /etc/nginx/default.d/ | |
COPY nginx/data/www /var/www/zackferrofields |
This file contains hidden or 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
# list files by name | |
# | |
# find $PATH -name '$FILE_NAME' -print | rev | cut -d/ -f1 | rev" | |
# | |
# eg all javascript files in "src" | |
# | |
find ./src -name '*.js' -print | rev | cut -d/ -f1 | rev |
OlderNewer