Fix keywords case warning in Dockerfile

Recently noticed the following warning in my Docker builds:

> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match

I don't think it's causing any harm, apart perhaps some small noise in the logs.
This commit is contained in:
Bruno Alla 2024-06-24 12:35:27 +02:00 committed by Fábio C. Barrionuevo da Luz
parent 8e319a21db
commit 1f82072d5b
3 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,8 @@
# define an alias for the specific python version used in this file.
FROM docker.io/python:3.12.4-slim-bookworm as python
FROM docker.io/python:3.12.4-slim-bookworm AS python
# Python build stage
FROM python as python-build-stage
FROM python AS python-build-stage
ARG BUILD_ENVIRONMENT=local
@ -22,7 +22,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
# Python 'run' stage
FROM python as python-run-stage
FROM python AS python-run-stage
ARG BUILD_ENVIRONMENT=local
ARG APP_HOME=/app

View File

@ -1,9 +1,9 @@
# define an alias for the specific python version used in this file.
FROM docker.io/python:3.12.4-slim-bookworm as python
FROM docker.io/python:3.12.4-slim-bookworm AS python
# Python build stage
FROM python as python-build-stage
FROM python AS python-build-stage
ENV PYTHONDONTWRITEBYTECODE 1
@ -26,7 +26,7 @@ RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
# Python 'run' stage
FROM python as python-run-stage
FROM python AS python-run-stage
ARG BUILD_ENVIRONMENT
ENV PYTHONUNBUFFERED 1

View File

@ -1,5 +1,5 @@
{% if cookiecutter.frontend_pipeline in ['Gulp', 'Webpack'] -%}
FROM docker.io/node:20-bookworm-slim as client-builder
FROM docker.io/node:20-bookworm-slim AS client-builder
ARG APP_HOME=/app
WORKDIR ${APP_HOME}
@ -25,10 +25,10 @@ RUN npm run build
{%- endif %}
# define an alias for the specific python version used in this file.
FROM docker.io/python:3.12.4-slim-bookworm as python
FROM docker.io/python:3.12.4-slim-bookworm AS python
# Python build stage
FROM python as python-build-stage
FROM python AS python-build-stage
ARG BUILD_ENVIRONMENT=production
@ -48,7 +48,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
# Python 'run' stage
FROM python as python-run-stage
FROM python AS python-run-stage
ARG BUILD_ENVIRONMENT=production
ARG APP_HOME=/app