FROM python:3.11.7 WORKDIR /code COPY ./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 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.tar \ && tar -xvf data.tar -C data/ \ && rm data.tar \ && ls data/ CMD ["panel", "serve", "/code/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