Skip to content

Commit 207aa98

Browse files
committed
Add ubuntu function
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent 3c30e31 commit 207aa98

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

stack.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,13 @@ functions:
9696
handler: ./external-ip
9797
image: ${SERVER:-ghcr.io}/${OWNER:-openfaas}/external-ip-fn:${TAG:-latest}
9898

99+
ubuntu:
100+
lang: dockerfile
101+
handler: ./ubuntu
102+
image: ${SERVER:-ghcr.io}/${OWNER:-openfaas}/ubuntu:${TAG:-latest}
103+
104+
99105
configuration:
100106
templates:
101107
- name: golang-middleware
102108
source: https://github.com/openfaas/golang-http-template
103-

ubuntu/Dockerfile

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

0 commit comments

Comments
 (0)