mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 11:10:20 +01:00
* using gym=0.12.5 instead of latest * changing docker gym version * changing dockingfile gym version
21 lines
661 B
Docker
21 lines
661 B
Docker
FROM coach-base:master as builder
|
|
|
|
# prep gym and any of its related requirements.
|
|
RUN pip3 install gym[atari,box2d,classic_control]==0.12.5
|
|
|
|
# add coach source starting with files that could trigger
|
|
# re-build if dependencies change.
|
|
RUN mkdir /root/src
|
|
COPY setup.py /root/src/.
|
|
COPY requirements.txt /root/src/.
|
|
RUN pip3 install -r /root/src/requirements.txt
|
|
|
|
FROM coach-base:master
|
|
WORKDIR /root/src
|
|
COPY --from=builder /root/.cache /root/.cache
|
|
COPY setup.py /root/src/.
|
|
COPY requirements.txt /root/src/.
|
|
COPY README.md /root/src/.
|
|
RUN pip3 install gym[atari,box2d,classic_control]==0.12.5 && pip3 install -e .[all] && rm -rf /root/.cache
|
|
COPY . /root/src
|