11# Function development kit for Python
2- The python FDK lets you write functions in python 3.6/3.7
2+ The python FDK lets you write functions in python 3.6/3.7/3.8
33
44## Simplest possible function
55
@@ -306,12 +306,12 @@ Then just do:
306306
307307First of all create a test function:
308308``` bash
309- fn init --runtime python3.7.1 test-function
309+ fn init --runtime python3.8.5 test-function
310310```
311311
312312Create a Dockerfile in a function's folder:
313313``` dockerfile
314- FROM fnproject/python:3.7.1 -dev as build-stage
314+ FROM fnproject/python:3.8.5 -dev as build-stage
315315
316316ADD . /function
317317WORKDIR /function
@@ -320,7 +320,7 @@ RUN pip3 install --target /python/ --no-cache --no-cache-dir fdk-test-py3-none-
320320
321321RUN rm -fr ~/.cache/pip /tmp* requirements.txt func.yaml Dockerfile .venv
322322
323- FROM fnproject/python:3.7.1
323+ FROM fnproject/python:3.8.5
324324
325325COPY --from=build-stage /function /function
326326COPY --from=build-stage /python /python
@@ -398,7 +398,7 @@ If you've been using json lib to turn an incoming data into a dictionary you nee
398398### Dockerfile
399399If you've been using CLI to build function without modifying runtime in ` func.yaml ` to ` docker `
400400instead of ` python ` then the only thing you need is to update the CLI to the latest version and
401- pin your Python runtime version to ` python ` or ` python3.7.1 ` .
401+ pin your Python runtime version to ` python ` , ` python3.7.1 ` , or ` python3.8.5 ` .
402402
403403If you've been using custom multi-stage Dockerfile (derived from what Fn CLI generates)
404404the only thing that is necessary to change is an ` ENTRYPOINT ` from:
0 commit comments