Spaces:
Build error
Build error
File size: 995 Bytes
dad6e1e d48b6bc fc2318a d48b6bc ab10410 5778d19 ab10410 fc2318a 329df0f 5778d19 eb30136 d48b6bc 1fcff8c d48b6bc e3aa147 e08c88c 7056a58 e08c88c d92050d 56e1504 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
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
# 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/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
|