From fb25ca800de7844f2831a59014028fd5b068bb7f Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:13:28 -0500 Subject: [PATCH] chore: Fix Docker lettercase warning --- .../{{cookiecutter.project_slug}}/Dockerfile_django | 2 +- .../{{cookiecutter.project_slug}}/Dockerfile_static | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_django b/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_django index 8d88c32..02a0241 100644 --- a/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_django +++ b/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_django @@ -1,5 +1,5 @@ {% if cookiecutter.use_fathom == "y" -%} -FROM python:{{ cookiecutter.python_version }} as build-stage +FROM python:{{ cookiecutter.python_version }} AS build-stage COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt diff --git a/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_static b/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_static index a6360e8..1948755 100644 --- a/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_static +++ b/cookiecutter-django/{{cookiecutter.project_slug}}/Dockerfile_static @@ -1,4 +1,4 @@ -FROM python:{{ cookiecutter.python_version }} as build-stage +FROM python:{{ cookiecutter.python_version }} AS build-stage COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache-dir -r /tmp/requirements.txt @@ -10,7 +10,7 @@ ENV DJANGO_ENV=production RUN python manage.py collectstatic --noinput -v2 -FROM nginxinc/nginx-unprivileged:latest as production-stage +FROM nginxinc/nginx-unprivileged:latest AS production-stage USER root COPY --from=build-stage --chown=nginx:root /workdir/static /usr/share/nginx/html/static COPY --chown=nginx:root default.conf /etc/nginx/conf.d/default.conf