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 folder from URL RUN mkdir /data RUN chmod 777 /data RUN apt-get update && apt-get install -y wget \ && wget https://data-eurogoship.ifremer.fr/copy_seadatanet/1H_file.zarr \ && mv 1H_file.zarr /data/ RUN wget https://data-eurogoship.ifremer.fr/bathymetrie/bathy6min.nc \ && mv bathy6min.nc /data/ RUN wget https://data-eurogoship.ifremer.fr/copy_seadatanet/table.csv \ && mv table.csv /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