From b569ffa27b606539af940c8ea0ee4c7e9aa7e319 Mon Sep 17 00:00:00 2001 From: dmitry-bychkov Date: Tue, 9 Jul 2024 17:04:02 +0300 Subject: [PATCH] Fix FromAsCasing warning Change FROM python:${PYTHON_VERSION}-slim as base line in Dockerfile content to get rid of warning: => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3) Which shows up on image build. --- content/language/python/containerize.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/language/python/containerize.md b/content/language/python/containerize.md index 67f1efe01f..9c4d169862 100644 --- a/content/language/python/containerize.md +++ b/content/language/python/containerize.md @@ -77,7 +77,7 @@ Create a file named `Dockerfile` with the following contents. # Want to help us make this template better? Share your feedback here: https://forms.gle/ybq9Krt8jtBL3iCk7 ARG PYTHON_VERSION=3.11.4 -FROM python:${PYTHON_VERSION}-slim as base +FROM python:${PYTHON_VERSION}-slim AS base # Prevents Python from writing pyc files. ENV PYTHONDONTWRITEBYTECODE=1