mirror of
https://github.com/linuxserver/docker-gc.git
synced 2026-01-09 06:50:45 +08:00
fix continuation lines
This commit is contained in:
parent
772fb84990
commit
ef32e808ab
22
Dockerfile
22
Dockerfile
@ -1,38 +1,34 @@
|
||||
FROM scratch
|
||||
ADD rootfs.tar.xz /
|
||||
MAINTAINER sparklyballs
|
||||
|
||||
# environment variables
|
||||
ENV FORCE_CONTAINER_REMOVAL=1
|
||||
ENV FORCE_IMAGE_REMOVAL=1
|
||||
|
||||
# install runtime packages
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
git && \
|
||||
echo"**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
bash \
|
||||
docker && \
|
||||
|
||||
# install build packages
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
git && \
|
||||
|
||||
# fetch docker-gc repo to get latest ver of script
|
||||
echo "**** fetch latest ver of docker-gc script ****" && \
|
||||
git clone https://github.com/spotify/docker-gc /tmp/docker-gc && \
|
||||
|
||||
# link docker executable, copy and make docker-gc executable
|
||||
echo "**** link docker executable, copy and make docker-gc executable ****" && \
|
||||
ln -s /usr/bin/docker \
|
||||
/bin/docker && \
|
||||
cp /tmp/docker-gc/docker-gc /docker-gc && \
|
||||
chmod +x \
|
||||
/docker-gc && \
|
||||
|
||||
# cleanup
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
||||
# port and volumes
|
||||
# volumes
|
||||
VOLUME /var/lib/docker-gc
|
||||
|
||||
# run command
|
||||
|
||||
@ -9,6 +9,7 @@ lsiobase/alpine.nginx:3.6
|
||||
lsiobase/alpine.nginx.arm64:3.6
|
||||
lsiobase/alpine.nginx.armhf:3.6
|
||||
lsiobase/alpine.python3:3.6
|
||||
lsiobase/alpine.python3:3.7
|
||||
lsiobase/alpine.python:3.6
|
||||
lsiobase/alpine.python:3.7
|
||||
lsiobase/alpine.python3.arm64:3.6
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user