From 1ff0442f7f91b2dba3fcf545b39b1e312d545b0f Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Wed, 16 Oct 2024 22:49:18 -0700 Subject: [PATCH] chore(build): Address warnings in the docker/django/Dockerfile release, the action began reporting build configuration warnings. Neato! It highlights three issues, each addressed in this patch. ``` 3 warnings found (use docker --debug to expand): - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 44) - UndefinedVar: Usage of undefined variable '$PYTHONPATH' (line 75) ``` --- docker/django/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/django/Dockerfile b/docker/django/Dockerfile index 3461161a46..7536fc7762 100644 --- a/docker/django/Dockerfile +++ b/docker/django/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.13-slim as build-base +FROM python:3.13-slim AS build-base RUN apt-get update --option "Acquire::Retries=3" --quiet=2 && \ apt-get install \ @@ -41,7 +41,7 @@ RUN python -m venv $POETRY_HOME && \ ln -s $POETRY_HOME/bin/poetry "$(dirname $(which python))/poetry" # make accessible via $PATH ARG BUILD_ENV=prod -FROM build-base as python-base +FROM build-base AS python-base WORKDIR $PYSETUP_PATH @@ -71,7 +71,7 @@ RUN mkdir /var/log/courtlistener \ WORKDIR /opt/courtlistener -ENV PYTHONPATH="${PYTHONPATH}:/opt/courtlistener" +ENV PYTHONPATH="/opt/courtlistener" USER root ## Creates a directory for Hyperscan db