35 lines
788 B
Docker
35 lines
788 B
Docker
FROM artifacts.swf.i.mercedes-benz.com/panguprod-docker/fst_data_pipeline/ros:noetic-desktop-full-focal
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# ---------- OS tools ----------
|
|
RUN apt-get update && apt-get install -y \
|
|
bash \
|
|
curl \
|
|
wget \
|
|
ca-certificates \
|
|
python3 \
|
|
python3-pip \
|
|
tzdata \
|
|
postgresql-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# ---------- Python deps ----------
|
|
RUN pip3 install --no-cache-dir \
|
|
psycopg2-binary \
|
|
requests \
|
|
tqdm \
|
|
coscmd
|
|
|
|
# ---------- App ----------
|
|
WORKDIR /app
|
|
COPY runner.py /app/runner.py
|
|
COPY merge_ros1.sh /app/merge_ros1.sh
|
|
RUN chmod +x /app/merge_ros1.sh
|
|
|
|
# ROS env
|
|
RUN echo "source /opt/ros/noetic/setup.bash" >> /etc/profile
|
|
|
|
ENTRYPOINT ["python3", "/app/runner.py"]
|