-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Dockerfile * Release v2.5.0 * Fix docker GPU parent * Fix changelog
- Loading branch information
Showing
4 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
ARG PARENT_IMAGE | ||
FROM $PARENT_IMAGE | ||
ARG PYTORCH_DEPS=cpuonly | ||
ARG PYTHON_VERSION=3.10 | ||
ARG PYTHON_VERSION=3.12 | ||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 # (otherwise python will not be found) | ||
|
||
# Install micromamba env and dependencies | ||
RUN micromamba install -n base -y python=$PYTHON_VERSION \ | ||
pytorch $PYTORCH_DEPS -c conda-forge -c pytorch -c nvidia && \ | ||
micromamba clean --all --yes | ||
|
||
ENV CODE_DIR /home/$MAMBA_USER | ||
ENV CODE_DIR=/home/$MAMBA_USER | ||
|
||
# Copy setup file only to install dependencies | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER ./setup.py ${CODE_DIR}/stable-baselines3/setup.py | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER ./stable_baselines3/version.txt ${CODE_DIR}/stable-baselines3/stable_baselines3/version.txt | ||
|
||
RUN cd ${CODE_DIR}/stable-baselines3 && \ | ||
pip install -e .[extra,tests,docs] && \ | ||
pip install uv && \ | ||
uv pip install --system -e .[extra,tests,docs] && \ | ||
# Use headless version for docker | ||
pip uninstall -y opencv-python && \ | ||
pip install opencv-python-headless && \ | ||
pip cache purge | ||
uv pip uninstall opencv-python && \ | ||
uv pip install --system opencv-python-headless && \ | ||
pip cache purge && \ | ||
uv cache clean | ||
|
||
CMD /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.5.0a1 | ||
2.5.0 |