From dd3f9f7235a1605a21057bf2ea9f2debadcefe61 Mon Sep 17 00:00:00 2001 From: Muhammad Jarir Kanji <52061313+mjkanji@users.noreply.github.com> Date: Wed, 12 Oct 2022 18:35:21 +0500 Subject: [PATCH] fix #874: Upgrade pip and create main_data_directory in Dockerfile --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index c66bb4879..9a1562656 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,12 +8,18 @@ FROM $BASE_IMAGE COPY . /mephisto RUN mkdir ~/.mephisto +# Create the main Mephisto data directory +RUN mkdir /mephisto/data + # Write the mephisto config file manually for now to avoid prompt. # For bash-style string $ expansion for newlines, # we need to switch the shell to bash: SHELL ["/bin/bash", "-c"] RUN echo $'core: \n main_data_directory: /mephisto/data' >> ~/.mephisto/config.yml +# Upgrade pip so we can use the pyproject.toml configuration +# without raising an error +RUN pip install --upgrade pip RUN cd /mephisto && pip install -e . RUN mephisto check # Run mephisto check so a mock requester gets created CMD mephisto check