2016-10-07 01:26:16 +01:00

54 lines
950 B
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 ubuntu:16.04
MAINTAINER sparklyballs
# set version for s6 overlay
ARG OVERLAY_VERSION="v1.18.1.5"
ARG OVERLAY_ARCH="amd64"
# set environment variables
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/root" \
TERM="xterm"
# copy sources
COPY sources.list /etc/apt/
# install apt-utils
RUN \
apt-get update && \
apt-get install -y \
apt-utils && \
# install packages
apt-get install -y \
curl && \
# add s6 overlay
curl -o \
/tmp/s6-overlay.tar.gz -L \
"https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}.tar.gz" && \
tar xfz \
/tmp/s6-overlay.tar.gz -C / && \
# create abc user
useradd -u 911 -U -d /config -s /bin/false abc && \
usermod -G users abc && \
# make our folders
mkdir -p \
/app \
/config \
/defaults && \
# cleanup
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
ENTRYPOINT ["/init"]