forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (20 loc) · 1014 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- mode: dockerfile -*-
# vi: set ft=dockerfile :
FROM ubuntu:focal
ADD drake-latest-focal.tar.gz /opt
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -qq \
&& apt-get install --no-install-recommends -o Dpkg::Use-Pty=0 -qy \
$(cat /opt/drake/share/drake/setup/packages-focal.txt) \
# Make python and pip available to meet the requirements for deepnote.com:
# https://docs.deepnote.com/environment/custom-environments#custom-image-requirements
python3-pip python-is-python3 \
&& rm -rf /var/lib/apt/lists/* \
&& mv /opt/drake/bin/drake-visualizer /opt/drake/bin/drake-visualizer.image
RUN printf '#!/bin/bash\n \
echo "drake-visualizer is not supported on Docker containers.\n\
Although not guaranteed to run, the executable is available to try as-is:\n\
/opt/drake/bin/drake-visualizer.image"' > /opt/drake/bin/drake-visualizer\
&& chmod a+x /opt/drake/bin/drake-visualizer
ENV PATH="/opt/drake/bin:${PATH}" \
PYTHONPATH="/opt/drake/lib/python3.8/site-packages:${PYTHONPATH}"