From 44c1d7db2ed7df710e97a4a118485d4d3153b846 Mon Sep 17 00:00:00 2001 From: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:25:56 -0600 Subject: [PATCH] Fix missing requirements file in Docker Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com> --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab62a50803..4825a69b62 100755 --- a/Dockerfile +++ b/Dockerfile @@ -26,9 +26,10 @@ RUN echo "${USER_NAME} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USER_NAME} \ USER ${USER_NAME} -COPY Sphinxsetup.sh ${WORKDIRECTORY}/Sphinxsetup.sh RUN --mount=type=cache,target=/var/cache/apt \ - bash -c "${WORKDIRECTORY}/Sphinxsetup.sh" && rm Sphinxsetup.sh + --mount=type=bind,source=Sphinxsetup.sh,target=${WORKDIRECTORY}/Sphinxsetup.sh \ + --mount=type=bind,source=requirements.txt,target=${WORKDIRECTORY}/requirements.txt \ + bash -c "./Sphinxsetup.sh" RUN sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*