Skip to content

Commit eb5fb46

Browse files
committed
Update of-watchdog to 0.10.4 and Python to 3.12
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 296d57b commit eb5fb46

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Are you referencing pip modules which require a native build toolchain? It's adv
3535
## Python Versioning
3636
We try to keep the default Python 3 version up-to-date, however, you can specify a specific python version using the `PYTHON_VERSION` build argument.
3737

38-
The current stable version of python is 3.11, you might want to test the next pre-release using
38+
The current stable version of Python is 3.12, you might want to test the next pre-release using:
3939

4040
```yaml
4141
functions:

template/python27-flask/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM ghcr.io/openfaas/of-watchdog:0.10.1 as watchdog
2-
FROM python:2.7-alpine as build
1+
FROM ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
2+
FROM python:2.7-alpine AS build
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog
@@ -36,7 +36,7 @@ USER root
3636
COPY --chown=app:app function function
3737
USER app
3838

39-
FROM build as ship
39+
FROM build AS ship
4040

4141
ENV fprocess="python index.py"
4242
ENV cgi_headers="true"

template/python3-flask-debian/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG PYTHON_VERSION=3.11
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.1 as watchdog
3-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-slim-buster as build
1+
ARG PYTHON_VERSION=3.12
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
3+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-slim-buster AS build
44

55
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66
RUN chmod +x /usr/bin/fwatchdog
@@ -42,13 +42,13 @@ USER root
4242

4343
COPY --chown=app:app function/ .
4444

45-
FROM build as test
45+
FROM build AS test
4646
ARG TEST_COMMAND=tox
4747
ARG TEST_ENABLED=true
4848
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4949

5050

51-
FROM build as ship
51+
FROM build AS ship
5252
WORKDIR /home/app/
5353

5454
#configure WSGI server and healthcheck

template/python3-flask/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG PYTHON_VERSION=3.11
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.1 as watchdog
3-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-alpine as build
1+
ARG PYTHON_VERSION=3.12
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
3+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-alpine AS build
44

55
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66
RUN chmod +x /usr/bin/fwatchdog
@@ -41,12 +41,12 @@ USER root
4141
COPY --chown=app:app function/ .
4242

4343

44-
FROM build as test
44+
FROM build AS test
4545
ARG TEST_COMMAND=tox
4646
ARG TEST_ENABLED=true
4747
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4848

49-
FROM build as ship
49+
FROM build AS ship
5050
WORKDIR /home/app/
5151

5252
#configure WSGI server and healthcheck

template/python3-http-debian/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG PYTHON_VERSION=3.11
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.1 as watchdog
3-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-slim-buster as build
1+
ARG PYTHON_VERSION=3.12
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
3+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-slim-buster AS build
44

55
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66
RUN chmod +x /usr/bin/fwatchdog
@@ -37,14 +37,14 @@ RUN pip install --no-cache-dir --user -r requirements.txt
3737
USER root
3838
COPY --chown=app:app function/ .
3939

40-
FROM build as test
40+
FROM build AS test
4141

4242
ARG TEST_COMMAND=tox
4343
ARG TEST_ENABLED=true
4444
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4545

4646

47-
FROM build as ship
47+
FROM build AS ship
4848
WORKDIR /home/app/
4949

5050
USER app

template/python3-http/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
ARG PYTHON_VERSION=3.11
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.1 as watchdog
3-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-alpine as build
1+
ARG PYTHON_VERSION=3.12
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.4 AS watchdog
3+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:${PYTHON_VERSION}-alpine AS build
44

55
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66
RUN chmod +x /usr/bin/fwatchdog
@@ -38,12 +38,12 @@ RUN pip install --no-cache-dir --user -r requirements.txt
3838
USER root
3939
COPY --chown=app:app function/ .
4040

41-
FROM build as test
41+
FROM build AS test
4242
ARG TEST_COMMAND=tox
4343
ARG TEST_ENABLED=true
4444
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4545

46-
FROM build as ship
46+
FROM build AS ship
4747
WORKDIR /home/app/
4848

4949
# configure WSGI server and healthcheck

0 commit comments

Comments
 (0)