FROM python:3.11.7 WORKDIR /code # Copy the Python code from the xsadcp repository RUN git clone https://github.com/tinaok/xsadcp.git xsadcp RUN pwd \ && ls COPY xsadcp/requirements.txt /code/requirements.txt RUN python3 -m pip install --no-cache-dir --upgrade pip RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt # Add pip install for xsadcp package from GitHub RUN python3 -m pip install --no-cache-dir --upgrade git+https://github.com/tinaok/xsadcp.git COPY . . # Add step to download data.tar from URL and extract its contents to /data/ RUN mkdir data \ && chmod 777 data \ && apt-get update \ && apt-get install -y wget tar \ && wget https://data-eurogoship.ifremer.fr/data_test.tar \ && tar -xvf data_test.tar -C data/ \ && rm data_test.tar \ && ls data/ CMD ["panel", "serve", "/code/xsadcp/xsadcp/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"] RUN mkdir /.cache RUN chmod 777 /.cache RUN mkdir /.config RUN chmod 777 /.config RUN mkdir .chroma RUN chmod 777 .chroma RUN mkdir /.local RUN chmod 777 /.local RUN pwd \ && ls