leaderboard-docker / Dockerfile
arshy's picture
change method
fa5de18
raw
history blame
938 Bytes
# 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"]