From b7b17ba834967a294a02d274c520d79b408a2f6c Mon Sep 17 00:00:00 2001 From: Denys Chura Date: Wed, 2 Oct 2024 18:31:35 +0300 Subject: [PATCH 1/2] Fix "FromAsCasing: 'as' and 'FROM' keywords' casing do not match" warning --- .../docker/images/api/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{ cookiecutter.project_slug }}/docker/images/api/Dockerfile b/{{ cookiecutter.project_slug }}/docker/images/api/Dockerfile index d7e04db..a346b2d 100644 --- a/{{ cookiecutter.project_slug }}/docker/images/api/Dockerfile +++ b/{{ cookiecutter.project_slug }}/docker/images/api/Dockerfile @@ -1,4 +1,4 @@ -FROM python:{{ cookiecutter.python_version.lower()}}-slim as base +FROM python:{{ cookiecutter.python_version.lower()}}-slim AS base ENV PYTHONUNBUFFERED 1 @@ -31,12 +31,12 @@ RUN chmod +x /opt/docker/entrypoint.sh ENTRYPOINT ["/opt/docker/entrypoint.sh"] -FROM base as local +FROM base AS local RUN poetry install --no-root --no-cache --no-ansi --no-interaction --with dev \ && poetry cache clear pypi --all -FROM base as live +FROM base AS live COPY ./api /opt/api From b1e9231afa1767970a8fe34ac5365012fdae20bb Mon Sep 17 00:00:00 2001 From: Denys Chura Date: Fri, 4 Oct 2024 11:59:26 +0300 Subject: [PATCH 2/2] Trigger Github workflow