mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-02 20:54:41 +03:00
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:
parent
8e319a21db
commit
1f82072d5b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user