File size: 835 Bytes
52938ea
 
 
 
 
 
 
 
 
 
 
d84b067
52938ea
dfea6c0
 
13bdfc4
 
 
 
 
 
 
 
 
 
 
 
52938ea
 
 
61bb7d7
43d8c1c
4213e37
 
8e635d7
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
FROM python:3.10-slim-buster

WORKDIR /app

COPY . /app

RUN apt-get update && \
    apt-get install -y --no-install-recommends git && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

RUN pip install poetry gradio

RUN git config --global --add safe.directory /app

# # Separately handle submodule update and checks
# RUN git submodule init
# RUN git submodule update --init --recursive

# # Check if the directory exists before attempting to cd
# RUN if [ -d "/app/olas-predict-benchmark" ]; then \
#         cd /app/olas-predict-benchmark && git checkout fix/mech-packages; \
#     fi

# RUN if [ -d "/app/olas-predict-benchmark/benchmark/mech" ]; then \
#         cd /app/olas-predict-benchmark/benchmark/mech && git checkout main; \
#     fi

EXPOSE 7860

RUN ls -la /app

RUN chmod +x /app/start.sh

CMD ["/app/start.sh"]