File size: 938 Bytes
52938ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43d8c1c
52938ea
5cc7308
 
 
 
52938ea
 
fa5de18
52938ea
 
 
43d8c1c
 
 
 
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
# Use an official Python runtime as a parent image
FROM python:3.10-slim-buster

# Set the working directory in the container to /app
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

# Install git and any other dependencies you might need
RUN apt-get update && \
    apt-get install -y --no-install-recommends git && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# Install Poetry
RUN pip install poetry gradio 

# # Run submodule update and checkout commands
# RUN git submodule update --init --recursive && \
#     cd /app/olas-predict-benchmark/benchmark && git checkout fix/mech-packages && cd ../.. && \
#     cd /app/olas-predict-benchmark/benchmark/mech && git checkout main && cd ../../..

# Install project dependencies
# RUN poetry install --no-interaction --no-ansi

EXPOSE 7860

RUN chmod +x /app/start.sh  

# Run app.py when the container launches
CMD ["/app/start.sh"]