fix: docker build deprecation warnings

With the latest Docker upgrade, we got the following warnings during
build:

	FromAsCasing: 'as' and 'FROM' keywords' casing do not match
	LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format
This commit is contained in:
Régis Behmo 2024-06-21 16:59:34 +02:00
parent d68039216d
commit f0ac92b85b
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
- [Bugfix] Fix legacy warnings during Docker build. (by @regisb)

View File

@ -16,7 +16,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
pkg-config && \ pkg-config && \
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen locale-gen
ENV LC_ALL en_US.UTF-8 ENV LC_ALL=en_US.UTF-8
###### Git-clone xqueue repo ###### ###### Git-clone xqueue repo ######
ARG APP_USER_ID=1000 ARG APP_USER_ID=1000
@ -28,7 +28,7 @@ WORKDIR /openedx/xqueue
###### Install python venv ###### ###### Install python venv ######
RUN python -m venv /openedx/venv RUN python -m venv /openedx/venv
ENV PATH /openedx/venv/bin:${PATH} ENV PATH=/openedx/venv/bin:${PATH}
# https://pypi.org/project/setuptools/ # https://pypi.org/project/setuptools/
# https://pypi.org/project/pip/ # https://pypi.org/project/pip/
# https://pypi.org/project/wheel/ # https://pypi.org/project/wheel/