Skip to content

Commit f5daf3f

Browse files
committed
Added an armhf Dockerfile and amended some copy and paste errors in README.md
1 parent 847b28a commit f5daf3f

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

Dockerfile.armhf

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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"]

README.md

100644100755
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# faas-node-ascii
1+
# faas-node-url-shortener
22
A [FaaS](http://get-faas.com) function to generate a shortened URL via an [external service](http://subr.pw)
33

44
You can execute the function like this:
@@ -20,7 +20,7 @@ Please note that this function requires internet access to query the external AP
2020
Add this to `docker-compose.yml` and then redeploy the stack
2121

2222
```Dockerfile
23-
ascii:
23+
url-shortener:
2424
image: developius/faas-node-url-shortener:latest
2525
labels:
2626
function: "true"
@@ -40,7 +40,7 @@ ascii:
4040
Hit the `CREATE NEW FUNCTION` button and add these details:
4141

4242
- Image: `developius/faas-node-url-shortener:latest`
43-
- Service name: `ascii`
43+
- Service name: `url-shortener`
4444
- fProcess: `node /app/index.js`
4545
- Network: `func_functions`
4646

0 commit comments

Comments
 (0)