Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Development_Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Montaño Sarria, Andres Felipe
Development_Environment
Commits
05a6bdfc
Commit
05a6bdfc
authored
2 months ago
by
Montaño Sarria, Andres Felipe
Browse files
Options
Downloads
Patches
Plain Diff
Fix remove lists to reduce image size
parent
41e0f628
Branches
main
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dockerfiles/devenv.Dockerfile
+9
-5
9 additions, 5 deletions
dockerfiles/devenv.Dockerfile
with
9 additions
and
5 deletions
dockerfiles/devenv.Dockerfile
+
9
−
5
View file @
05a6bdfc
...
...
@@ -60,7 +60,8 @@ RUN apt-get update && \
trash-cli
\
valgrind
\
wget
\
xterm
xterm
\
&&
rm
-rf
/var/lib/apt/lists/
*
# Install zsh if requested
RUN if
[
"
$EXT_SHELL
"
=
"zsh"
]
;
\
...
...
@@ -90,7 +91,7 @@ RUN if [ -f "${ROS_DISTRO}_requirements.txt" ]; \
# workaround for ROS jazzy
export PIP_BREAK_SYSTEM_PACKAGES=1 && \
awk '/^# PIP PACKAGES/,0' ${ROS_DISTRO}_requirements.txt | grep -v '^#' | xargs -r -n1 pip install -U ;\
apt-get clean; \
apt-get clean;
rm -rf /var/lib/apt/lists/*;
\
fi
# Install extra libs from .deb files
...
...
@@ -107,14 +108,15 @@ RUN if [ -f "common_libs.txt" ]; \
fi
# Install notify-osd
RUN
apt-get
--reinstall
install
-y
libnotify-bin notify-osd
RUN
apt-get
update
&&
apt-get
--reinstall
install
-y
libnotify-bin notify-osd
RUN
rm
-rf
*
# Update base image
RUN
apt-get update
\
&&
apt-get
-y
upgrade
\
&&
apt-get
-y
autoremove
\
&&
apt-get
-y
autoclean
&&
apt-get
-y
autoclean
\
&&
rm
-rf
/var/lib/apt/lists/
*
# Copy entrypoint
COPY
./ros_entrypoint.sh /
...
...
@@ -180,6 +182,7 @@ RUN if [ "$PEAK_DRIVER" = "install" ]; \
&&
tar
-xvf
PCAN-Basic_Linux.tar.gz
\
&&
cd
PCAN-Basic_Linux-4.9.0.7/libpcanbasic
\
&&
make clean
&&
make
install
||
echo
'make failed but move forward'
;
\
rm
-rf
/var/lib/apt/lists/
*
;
\
fi
# Install conan for Kortex driver
...
...
@@ -212,7 +215,8 @@ LABEL image.date=09-01-2025
RUN
apt-get update
\
&&
apt-get
-y
upgrade
\
&&
apt-get
-y
autoremove
\
&&
apt-get
-y
autoclean
&&
apt-get
-y
autoclean
\
&&
rm
-rf
/var/lib/apt/lists/
*
# Switch back to dialog for any ad-hoc use of apt-get
ENV
DEBIAN_FRONTEND=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment