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
const compose = (...fns) => | |
fns.reverse().reduce((prevFn, nextFn) => | |
value => nextFn(prevFn(value)), | |
value => value | |
); |
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
# This docker file will consist of two stages. The first stage will be used to arrange the application | |
# dependencies and compile it. The second stage will be used to set up an nginx server to serve the | |
# static angular content. | |
### Stage 1: Downloading application dependencies and compiling angular AoT | |
# Create image based on the official Node based on the Alpine linus distribution image from dockerhub | |
FROM node:alpine AS builder | |
# Create a directory where our app will be placed. -p is to create parent directories as necessary |
NewerOlder