forked from lesunb/HMRSsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 796 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ros:foxy-ros-core
RUN apt-get update && apt-get install -y curl build-essential python-is-python3 ros-foxy-rosbridge-server ros-foxy-navigation2 ros-foxy-nav2-bringup ros-foxy-moveit-msgs '~ros-foxy-turtlebot3-.*'
RUN curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
RUN pip install "poetry==1.1.13"
RUN apt-get -y dist-upgrade
ARG example_folder
COPY src/ /etc/hmrsim/src
COPY ${example_folder} /etc/hmrsim/examples
COPY ./pyproject.toml /etc/hmrsim/pyproject.toml
COPY ./poetry.lock /etc/hmrsim/poetry.lock
COPY ./LICENSE /etc/hmrsim/LICENSE
COPY ./README.md /etc/hmrsim/README.md
WORKDIR /etc/hmrsim
RUN poetry install
WORKDIR /etc/hmrsim/examples
COPY ./hmrsim_entrypoint.sh /hmrsim_entrypoint.sh
ENTRYPOINT ["/bin/bash", "/hmrsim_entrypoint.sh"]