File tree 6 files changed +24
-24
lines changed
6 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Are you referencing pip modules which require a native build toolchain? It's adv
35
35
## Python Versioning
36
36
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.
37
37
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:
39
39
40
40
``` yaml
41
41
functions :
Original file line number Diff line number Diff line change 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
3
3
4
4
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
5
5
RUN chmod +x /usr/bin/fwatchdog
@@ -36,7 +36,7 @@ USER root
36
36
COPY --chown=app:app function function
37
37
USER app
38
38
39
- FROM build as ship
39
+ FROM build AS ship
40
40
41
41
ENV fprocess="python index.py"
42
42
ENV cgi_headers="true"
Original file line number Diff line number Diff line change 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
4
4
5
5
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
6
RUN chmod +x /usr/bin/fwatchdog
@@ -42,13 +42,13 @@ USER root
42
42
43
43
COPY --chown=app:app function/ .
44
44
45
- FROM build as test
45
+ FROM build AS test
46
46
ARG TEST_COMMAND=tox
47
47
ARG TEST_ENABLED=true
48
48
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
49
49
50
50
51
- FROM build as ship
51
+ FROM build AS ship
52
52
WORKDIR /home/app/
53
53
54
54
# configure WSGI server and healthcheck
Original file line number Diff line number Diff line change 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
4
4
5
5
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
6
RUN chmod +x /usr/bin/fwatchdog
@@ -41,12 +41,12 @@ USER root
41
41
COPY --chown=app:app function/ .
42
42
43
43
44
- FROM build as test
44
+ FROM build AS test
45
45
ARG TEST_COMMAND=tox
46
46
ARG TEST_ENABLED=true
47
47
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
48
48
49
- FROM build as ship
49
+ FROM build AS ship
50
50
WORKDIR /home/app/
51
51
52
52
# configure WSGI server and healthcheck
Original file line number Diff line number Diff line change 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
4
4
5
5
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
6
RUN chmod +x /usr/bin/fwatchdog
@@ -37,14 +37,14 @@ RUN pip install --no-cache-dir --user -r requirements.txt
37
37
USER root
38
38
COPY --chown=app:app function/ .
39
39
40
- FROM build as test
40
+ FROM build AS test
41
41
42
42
ARG TEST_COMMAND=tox
43
43
ARG TEST_ENABLED=true
44
44
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
45
45
46
46
47
- FROM build as ship
47
+ FROM build AS ship
48
48
WORKDIR /home/app/
49
49
50
50
USER app
Original file line number Diff line number Diff line change 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
4
4
5
5
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
6
6
RUN chmod +x /usr/bin/fwatchdog
@@ -38,12 +38,12 @@ RUN pip install --no-cache-dir --user -r requirements.txt
38
38
USER root
39
39
COPY --chown=app:app function/ .
40
40
41
- FROM build as test
41
+ FROM build AS test
42
42
ARG TEST_COMMAND=tox
43
43
ARG TEST_ENABLED=true
44
44
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
45
45
46
- FROM build as ship
46
+ FROM build AS ship
47
47
WORKDIR /home/app/
48
48
49
49
# configure WSGI server and healthcheck
You can’t perform that action at this time.
0 commit comments