Skip to content

Commit

Permalink
Fix keywords case warning in Dockerfile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
browniebroke authored and luzfcb committed Jun 26, 2024
1 parent 8e319a2 commit 1f82072
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/compose/local/django/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_slug}}/compose/local/docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 1f82072

Please sign in to comment.