Fix dev container builds (#212)

This commit is contained in:
Sterling Dreyer 2025-01-20 11:32:23 -08:00 committed by GitHub
parent 7a7f37e5fc
commit 21ddeb1c93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,16 +28,26 @@ RUN apt-get update && apt-get install -y \
WORKDIR /app/arcade
# Copy the parent directory contents into the container
COPY ../dist /app/arcade/
COPY ./dist ./arcade /app/arcade/
# List files for debugging purposes
RUN ls -lah /app/arcade/
# Install the wheel with extras (not evals for now)
RUN python -m pip install ./arcade_ai-${VERSION}-py3-none-any.whl fastapi
RUN python -m pip install -r ./requirements.txt
RUN ls -la /app/arcade/
# Conditional installation based on version
RUN if [ ! "$(echo ${VERSION} | grep -E '\.dev0$')" ]; then \
echo "Installing wheel file" && \
python -m pip install ./arcade_ai-${VERSION}-py3-none-any.whl fastapi && \
python -m pip install -r ./requirements.txt; \
else \
echo "Installing from source" && \
cd /app/arcade && \
pip install poetry && \
poetry lock && \
poetry version 0.1.0 && \
pip install fastapi && \
pip install -r requirements.txt && \
pip install .; \
fi
# Expose the port
EXPOSE $PORT