2021-06-24 15:14:37 +00:00
|
|
|
ARG COMPOSE_VERSION="1.29.2"
|
2019-06-03 01:14:40 +00:00
|
|
|
|
2021-06-24 13:53:23 +00:00
|
|
|
# docker compose
|
2021-06-24 15:14:37 +00:00
|
|
|
FROM ghcr.io/linuxserver/docker-compose:arm64v8-version-${COMPOSE_VERSION} as compose
|
2019-06-03 01:14:40 +00:00
|
|
|
|
|
|
|
# runtime stage
|
2020-11-02 04:38:13 +00:00
|
|
|
FROM ghcr.io/linuxserver/baseimage-cloud9:arm64v8-latest
|
2019-06-03 01:14:40 +00:00
|
|
|
|
|
|
|
# set version label
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VERSION
|
|
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
|
|
LABEL maintainer="thelamer"
|
|
|
|
|
|
|
|
# Docker compose
|
2021-06-24 13:53:23 +00:00
|
|
|
COPY --from=compose /usr/local/bin/docker-compose /usr/local/bin/docker-compose
|
2019-06-03 01:14:40 +00:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
echo "**** install docker deps ****" && \
|
|
|
|
curl -s \
|
2020-02-07 22:57:52 +00:00
|
|
|
https://download.docker.com/linux/debian/gpg | \
|
|
|
|
apt-key add - && \
|
2019-06-03 01:14:40 +00:00
|
|
|
echo 'deb [arch=arm64] https://download.docker.com/linux/ubuntu bionic stable' > \
|
2020-02-07 22:57:52 +00:00
|
|
|
/etc/apt/sources.list.d/docker-ce.list && \
|
2019-06-03 01:14:40 +00:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2020-02-07 22:57:52 +00:00
|
|
|
docker-ce && \
|
2019-06-03 01:14:40 +00:00
|
|
|
echo "**** Cleanup and user perms ****" && \
|
|
|
|
apt-get autoclean && \
|
|
|
|
rm -rf \
|
2020-02-07 22:57:52 +00:00
|
|
|
/var/lib/apt/lists/* \
|
|
|
|
/var/tmp/* \
|
|
|
|
/tmp/*
|