From aca92061f4078b1ef38c411c152715af847fee70 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Wed, 14 Jun 2023 16:38:14 +0500 Subject: [PATCH] lint: corrected the syntax --- .../templates/discovery/build/discovery/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tutordiscovery/templates/discovery/build/discovery/Dockerfile b/tutordiscovery/templates/discovery/build/discovery/Dockerfile index 103eb6f..bd81aeb 100644 --- a/tutordiscovery/templates/discovery/build/discovery/Dockerfile +++ b/tutordiscovery/templates/discovery/build/discovery/Dockerfile @@ -1,4 +1,4 @@ -{% if is_buildkit_enabled() %}# syntax=docker/dockerfile:1.4{% endif %} +# {% if is_buildkit_enabled() %}syntax=docker/dockerfile:1.4{% endif %} ###### Minimal image with base system requirements for most stages FROM docker.io/ubuntu:20.04 as minimal @@ -65,8 +65,7 @@ RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/bowe # instructions to benefit from docker image caching # Install base requirements RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared {% endif %}pip install -r requirements.txt -{% for extra_requirement in DISCOVERY_EXTRA_PIP_REQUIREMENTS %}RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared {% endif %}pip install '{{ extra_requirements }}' -{% endfor %} +RUN {% for extra_requirement in DISCOVERY_EXTRA_PIP_REQUIREMENTS %} {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared {% endif %}pip install '{{ extra_requirements }}' {% endfor %} # Install extra requirements RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared {% endif %}pip install \