docker-hubstats/Dockerfile
Paul Hendryx 2859c8e414 Merge branch 'master' into jsonscript
# Conflicts:
#	Dockerfile
2018-03-25 12:13:44 -04:00

83 lines
1.5 KiB
Docker
Raw 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}"
# copy app files
COPY app/ /opt/dockerhub-stats/
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
# package versions
ARG GRAFANA_VER="4.1.2-1486989747"
ARG INFLUX_VER="1.2.0"
# build packages as variable
ARG BUILD_PACKAGES="\
g++ \
gcc \
git \
make \
ruby-dev \
wget"
# 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 \
ruby \
wget && \
# install influxdb and grafana
curl -o \
/tmp/influxdb.deb \
"https://dl.influxdata.com/influxdb/releases/influxdb_${INFLUX_VER}_amd64.deb" && \
dpkg -i /tmp/influxdb.deb && \
curl -o \
/tmp/grafana.deb \
"https://grafanarel.s3.amazonaws.com/builds/grafana_${GRAFANA_VER}_amd64.deb" && \
dpkg -i /tmp/grafana.deb && \
apt-get -f install && \
# clean up
rm -rf \
/root \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* && \
mkdir -p \
/root
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 3000 8083 8086 4567
VOLUME /config