From 785b081165c7329107d3bb86a88d92e360793b03 Mon Sep 17 00:00:00 2001 From: david-hummingbot <85695272+david-hummingbot@users.noreply.github.com> Date: Thu, 7 Sep 2023 00:29:40 +0800 Subject: [PATCH] fix/docker ps--format error --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36360bd6..865eb801 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,6 @@ RUN conda env create -f /tmp/environment_conda.yml && \ # Copy remaining files COPY . . - SHELL [ "/bin/bash", "-lc" ] RUN echo "conda activate dashboard" >> ~/.bashrc @@ -44,9 +43,14 @@ ENV INSTALLATION_TYPE=docker # Install system dependencies RUN apt-get update && \ - apt-get install -y && \ + apt-get install -y curl && \ rm -rf /var/lib/apt/lists/* +# Install Docker CLI +RUN curl -fsSL https://get.docker.com -o get-docker.sh && \ + sh get-docker.sh && \ + rm get-docker.sh + # Create mount points RUN mkdir -p /home/dashboard/data @@ -62,5 +66,4 @@ EXPOSE 8501 SHELL [ "/bin/bash", "-lc" ] # Set the default command to run when starting the container - CMD conda activate dashboard && streamlit run main.py