Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Docker Build Images
raspbian-base
Commits
1995e15e
Commit
1995e15e
authored
Jan 11, 2019
by
Markus Frosch
Browse files
Add Docker specific tweaks
parent
6830dc93
Pipeline
#3248
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
1995e15e
FROM
scratch
ADD
rootfs.tar.xz /
COPY
qemu-arm-static /usr/bin/qemu-arm-static
# a few minor docker-specific tweaks
# see https://github.com/docker/docker/blob/master/contrib/mkimage/debootstrap
RUN
echo
'#!/bin/sh'
>
/usr/sbin/policy-rc.d
\
&&
echo
'exit 101'
>>
/usr/sbin/policy-rc.d
\
&&
chmod
+x /usr/sbin/policy-rc.d
\
&&
dpkg-divert
--local
--rename
--add
/sbin/initctl
\
&&
cp
-a
/usr/sbin/policy-rc.d /sbin/initctl
\
&&
sed
-i
's/^exit.*/exit 0/'
/sbin/initctl
\
&&
echo
'force-unsafe-io'
>
/etc/dpkg/dpkg.cfg.d/docker-apt-speedup
\
&&
echo
'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };'
>
/etc/apt/apt.conf.d/docker-clean
\
&&
echo
'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };'
>>
/etc/apt/apt.conf.d/docker-clean
\
&&
echo
'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";'
>>
/etc/apt/apt.conf.d/docker-clean
\
&&
echo
'Acquire::Languages "none";'
>
/etc/apt/apt.conf.d/docker-no-languages
\
&&
echo
'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";'
>
/etc/apt/apt.conf.d/docker-gzip-indexes
CMD
["bash"]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment