File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,14 @@ functions:
100
100
lang : golang-middleware
101
101
handler : ./markdown
102
102
image : ${SERVER:-ghcr.io}/${OWNER:-openfaas}/markdown-fn:${TAG:-latest}
103
+
104
+ ubuntu :
105
+ lang : dockerfile
106
+ handler : ./ubuntu
107
+ image : ${SERVER:-ghcr.io}/${OWNER:-openfaas}/ubuntu:${TAG:-latest}
103
108
104
109
105
110
configuration :
106
111
templates :
107
112
- name : golang-middleware
108
113
source : https://github.com/openfaas/golang-http-template
109
-
110
-
Original file line number Diff line number Diff line change
1
+ FROM ghcr.io/openfaas/classic-watchdog:0.3.2 AS watchdog
2
+
3
+ FROM ubuntu:24.04
4
+
5
+ COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
+ RUN chmod +x /usr/bin/fwatchdog
7
+
8
+ USER 1000
9
+
10
+ ENV fprocess="cat"
11
+
12
+ HEALTHCHECK --interval=3s CMD [ -e /tmp/.lock ] || exit 1
13
+ CMD ["fwatchdog" ]
You can’t perform that action at this time.
0 commit comments