Skip to content

Instantly share code, notes, and snippets.

@balajismaniam
Created November 27, 2018 00:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balajismaniam/217e38b642224637ab61a6aa1533401a to your computer and use it in GitHub Desktop.
Save balajismaniam/217e38b642224637ab61a6aa1533401a to your computer and use it in GitHub Desktop.
FROM coach-base:master as builder
# prep vizdoom and any of its related requirements.
RUN pip3 install vizdoom
# 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 vizdoom && pip3 install -e .[all] && rm -rf /root/.cache
COPY . /root/src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment