File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ FROM armhf/alpine:latest
2
+ RUN apk --no-cache add nodejs
3
+
4
+ ADD http://github.com/alexellis/faas/releases/download/0.5.3-alpha/fwatchdog-armhf /usr/bin/fwatchdog
5
+ RUN chmod +x /usr/bin/fwatchdog
6
+
7
+ WORKDIR /app
8
+ ADD package.json .
9
+ ADD index.js .
10
+
11
+ RUN npm i
12
+
13
+ ENV fprocess="node /app/index.js"
14
+ CMD ["fwatchdog"]
Original file line number Diff line number Diff line change 1
- # faas-node-ascii
1
+ # faas-node-url-shortener
2
2
A [ FaaS] ( http://get-faas.com ) function to generate a shortened URL via an [ external service] ( http://subr.pw )
3
3
4
4
You can execute the function like this:
@@ -20,7 +20,7 @@ Please note that this function requires internet access to query the external AP
20
20
Add this to ` docker-compose.yml ` and then redeploy the stack
21
21
22
22
``` Dockerfile
23
- ascii :
23
+ url-shortener :
24
24
image: developius/faas-node-url-shortener:latest
25
25
labels:
26
26
function: "true"
40
40
Hit the ` CREATE NEW FUNCTION ` button and add these details:
41
41
42
42
- Image: ` developius/faas-node-url-shortener:latest `
43
- - Service name: ` ascii `
43
+ - Service name: ` url-shortener `
44
44
- fProcess: ` node /app/index.js `
45
45
- Network: ` func_functions `
46
46
You can’t perform that action at this time.
0 commit comments