File tree Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Expand file tree Collapse file tree 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
3535## Python Versioning
3636We 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
4141functions :
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
33
44COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55RUN chmod +x /usr/bin/fwatchdog
@@ -36,7 +36,7 @@ USER root
3636COPY --chown=app:app function function
3737USER app
3838
39- FROM build as ship
39+ FROM build AS ship
4040
4141ENV fprocess="python index.py"
4242ENV 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
44
55COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66RUN chmod +x /usr/bin/fwatchdog
@@ -42,13 +42,13 @@ USER root
4242
4343COPY --chown=app:app function/ .
4444
45- FROM build as test
45+ FROM build AS test
4646ARG TEST_COMMAND=tox
4747ARG TEST_ENABLED=true
4848RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4949
5050
51- FROM build as ship
51+ FROM build AS ship
5252WORKDIR /home/app/
5353
5454# 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
44
55COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66RUN chmod +x /usr/bin/fwatchdog
@@ -41,12 +41,12 @@ USER root
4141COPY --chown=app:app function/ .
4242
4343
44- FROM build as test
44+ FROM build AS test
4545ARG TEST_COMMAND=tox
4646ARG TEST_ENABLED=true
4747RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4848
49- FROM build as ship
49+ FROM build AS ship
5050WORKDIR /home/app/
5151
5252# 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
44
55COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66RUN chmod +x /usr/bin/fwatchdog
@@ -37,14 +37,14 @@ RUN pip install --no-cache-dir --user -r requirements.txt
3737USER root
3838COPY --chown=app:app function/ .
3939
40- FROM build as test
40+ FROM build AS test
4141
4242ARG TEST_COMMAND=tox
4343ARG TEST_ENABLED=true
4444RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4545
4646
47- FROM build as ship
47+ FROM build AS ship
4848WORKDIR /home/app/
4949
5050USER 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
44
55COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
66RUN chmod +x /usr/bin/fwatchdog
@@ -38,12 +38,12 @@ RUN pip install --no-cache-dir --user -r requirements.txt
3838USER root
3939COPY --chown=app:app function/ .
4040
41- FROM build as test
41+ FROM build AS test
4242ARG TEST_COMMAND=tox
4343ARG TEST_ENABLED=true
4444RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4545
46- FROM build as ship
46+ FROM build AS ship
4747WORKDIR /home/app/
4848
4949# configure WSGI server and healthcheck
You can’t perform that action at this time.
0 commit comments