docker-hubstats/Dockerfile
2016-11-24 00:40:14 -05:00

168 lines
2.9 KiB
Docker
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/xenial
MAINTAINER phendryx
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
# build packages as variable
ARG BUILD_PACKAGES="\
apt-transport-https \
binutils \
bzip2 \
cpp \
cpp-5 \
dh-python \
distro-info-data \
g++ \
g++-5 \
gcc \
gcc-5 \
git \
git-core \
git-man \
icu-devtools \
libasan2 \
libatomic1 \
libc-dev-bin \
libc6-dev \
libcc1-0 \
libcilkrts5 \
liberror-perl \
libgcc-5-dev \
libgdbm3 \
libgmp-dev \
libgmpxx4ldbl \
libgomp1 \
libicu-dev \
libicu55 \
libisl15 \
libitm1 \
liblsan0 \
libmpc3 \
libmpdec2 \
libmpfr4 \
libmpx0 \
libperl5.22 \
libpng12-0 \
libpython3-stdlib \
libpython3.5-minimal \
libpython3.5-stdlib \
libquadmath0 \
libruby2.3 \
libstdc++-5-dev \
libtcl8.6 \
libtcltk-ruby \
libtk8.6 \
libtsan0 \
libubsan0 \
libx11-6 \
libx11-data \
libxau6 \
libxcb1 \
libxdmcp6 \
libxext6 \
libxml2 \
libxml2-dev \
libxrender1 \
libxslt1-dev \
libxslt1.1 \
libxss1 \
libyaml-0-2 \
linux-libc-dev \
lsb-release \
make \
mime-support \
perl \
perl-modules-5.22 \
python3 \
python3-minimal \
python3.5 \
python3.5-minimal \
rake \
ri \
ruby \
ruby-dev \
ruby-did-you-mean \
ruby-full \
ruby-minitest \
ruby-net-telnet \
ruby-power-assert \
ruby-test-unit \
ruby2.3 \
ruby2.3-dev \
ruby2.3-doc \
ruby2.3-tcltk \
rubygems-integration \
wget \
x11-common \
zlib1g-dev \
fontconfig-config \
fonts-dejavu-core \
libexpat1 \
libfontconfig1 \
libfontconfig \
libfreetype6 \
libpng12-0 \
ucf"
# copy app and excludes
COPY root/ /
COPY app/ /opt/dockerhub-stats/
# install build packages
RUN \
apt-get update && \
apt-get install -y \
--no-install-recommends \
$BUILD_PACKAGES && \
# install ruby app gems
cd /opt/dockerhub-stats/ && \
echo 'gem: --no-document' > \
/etc/gemrc && \
gem install bundler && \
bundle install && \
# clean up
apt-get purge -y --auto-remove \
$BUILD_PACKAGES && \
# install runtime packages
apt-get install -y \
--no-install-recommends \
cron \
libfontconfig1 \
libfreetype6 \
libpng12-0 \
netcat \
wget \
ruby && \
cd /tmp; wget wget https://dl.influxdata.com/influxdb/releases/influxdb_1.1.0_amd64.deb; dpkg -i influxdb_1.1.0_amd64.deb && \
cd /tmp; wget https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.1-1470047149_amd64.deb; dpkg -i grafana_3.1.1-1470047149_amd64.deb && apt-get -f install && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* && \
find /root -name . -o -prune -exec rm -rf -- {} + && \
find /var/lib/gems -name "cache" -type d -exec rm -rf -- {} + && \
mkdir -p \
/root && \
chmod 744 /etc/cron.d/dockerhub-stats
# import grafana dashboard
# ADD ./grafana/dash.json /var/lib/grafana/dashboards/dash.json
# ports and volumes
#WORKDIR /opt/docker-readme-sync
EXPOSE 3000 8083 8086
VOLUME /config