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
version: '3' | |
services: | |
web: | |
restart: always | |
build: . | |
command: python ./app.py | |
ports: | |
- 5000:5000 | |
volumes: | |
- .:/app |
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
## I am most comfortable doing something like this in Perl but I decided to go outside my comfort zone, | |
## learn something new and see if I could make it work. | |
class Flatten | |
# Checks the input and iterates over the items in the array recursively | |
# and flattens the array(s) into a single array that is returned | |
def flatten(args) | |
data = args['data'] || Array.new |