mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Moving dep builds into Dockerfile and multi-stage builds.
This commit is contained in:
committed by
Denis Makogon
parent
0276a1c156
commit
f628e39490
@@ -2,6 +2,6 @@
|
||||
"name": "my-awesome-func",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"request": "^2.78.0"
|
||||
"is-positive": "^3.1.0"
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
sys.path.append("packages")
|
||||
import os
|
||||
import json
|
||||
|
||||
@@ -9,9 +8,13 @@ name = "World"
|
||||
|
||||
try:
|
||||
if not os.isatty(sys.stdin.fileno()):
|
||||
obj = json.loads(sys.stdin.read())
|
||||
if obj["name"] != "":
|
||||
name = obj["name"]
|
||||
try:
|
||||
obj = json.loads(sys.stdin.read())
|
||||
if obj["name"] != "":
|
||||
name = obj["name"]
|
||||
except ValueError:
|
||||
# ignore it
|
||||
sys.stderr.write("no input, but that's ok\n")
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
hello_pip==1.0.4
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require_relative 'bundle/bundler/setup'
|
||||
# require_relative 'bundle/bundler/setup'
|
||||
require 'json'
|
||||
|
||||
name = "World"
|
||||
|
||||
Reference in New Issue
Block a user