docker-baseimage-ubuntu/Dockerfile

57 wiersze
999 B
Docker
Czysty Zwykły widok Historia

2016-07-01 02:46:36 +00:00
FROM ubuntu:16.04
MAINTAINER sparklyballs
# set version for s6 overlay
2017-01-29 02:44:18 +00:00
ARG OVERLAY_VERSION="v1.19.1.1"
2016-07-09 12:44:56 +00:00
ARG OVERLAY_ARCH="amd64"
2016-07-01 02:46:36 +00:00
2016-10-07 00:26:16 +00:00
# set environment variables
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/root" \
TERM="xterm"
2016-07-01 02:46:36 +00:00
# copy sources
COPY sources.list /etc/apt/
2017-03-15 00:07:16 +00:00
# generate locale
2016-07-01 02:46:36 +00:00
RUN \
2017-03-15 00:07:16 +00:00
locale-gen en_US.UTF-8 && \
# install apt-utils
2016-07-01 02:46:36 +00:00
apt-get update && \
apt-get install -y \
apt-utils && \
# install packages
2016-07-01 02:46:36 +00:00
apt-get install -y \
curl && \
# add s6 overlay
curl -o \
2016-07-09 12:44:56 +00:00
/tmp/s6-overlay.tar.gz -L \
2016-10-07 00:26:16 +00:00
"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 && \
2016-07-01 02:46:36 +00:00
# cleanup
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
ENTRYPOINT ["/init"]