first commit
commit
ad6558e6aa
|
@ -0,0 +1,48 @@
|
||||||
|
FROM ubuntu:16.04
|
||||||
|
MAINTAINER sparklyballs
|
||||||
|
|
||||||
|
# set environment variables
|
||||||
|
ARG DEBIAN_FRONTEND="noninteractive"
|
||||||
|
ENV HOME="/root"
|
||||||
|
ENV TERM="xterm"
|
||||||
|
|
||||||
|
# set version for s6 overlay
|
||||||
|
ARG OVERLAY_VERSION="v1.18.1.0"
|
||||||
|
|
||||||
|
# create abc user and make folders
|
||||||
|
RUN \
|
||||||
|
useradd -u 911 -U -d /config -s /bin/false abc && \
|
||||||
|
usermod -G users abc && \
|
||||||
|
mkdir -p \
|
||||||
|
/app \
|
||||||
|
/config \
|
||||||
|
/defaults
|
||||||
|
|
||||||
|
# install packages
|
||||||
|
RUN \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
apt-utils && \
|
||||||
|
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-amd64.tar.gz && \
|
||||||
|
tar xvfz \
|
||||||
|
/tmp/s6-overlay.tar.gz -C / && \
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf \
|
||||||
|
/tmp/* \
|
||||||
|
/var/lib/apt/lists/* \
|
||||||
|
/var/tmp/*
|
||||||
|
|
||||||
|
# add local files
|
||||||
|
COPY root/ /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/init"]
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|

|
||||||
|
|
||||||
|
### This base container is not aimed at public consumption. It exists to serve as a single endpoint for LinuxServer.io containers and is based upon [Ubuntu Xenial](https://hub.docker.com/_/ubuntu/)
|
||||||
|
|
||||||
|
If you want to comment\contribute to our work, feel free to join us at out irc channel:
|
||||||
|
[IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io` or visit our website at [https://linuxserver.io](https://linuxserver.io).
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
|
||||||
|
PUID=${PUID:-911}
|
||||||
|
PGID=${PGID:-911}
|
||||||
|
|
||||||
|
if [ ! "$(id -u abc)" -eq "$PUID" ]; then usermod -o -u "$PUID" abc ; fi
|
||||||
|
if [ ! "$(id -g abc)" -eq "$PGID" ]; then groupmod -o -g "$PGID" abc ; fi
|
||||||
|
|
||||||
|
echo "
|
||||||
|
-------------------------------------
|
||||||
|
_ _ _
|
||||||
|
| |___| (_) ___
|
||||||
|
| / __| | |/ _ \
|
||||||
|
| \__ \ | | (_) |
|
||||||
|
|_|___/ |_|\___/
|
||||||
|
|_|
|
||||||
|
|
||||||
|
Brought to you by linuxserver.io
|
||||||
|
We do accept donations at:
|
||||||
|
https://www.linuxserver.io/donations
|
||||||
|
-------------------------------------
|
||||||
|
GID/UID
|
||||||
|
-------------------------------------
|
||||||
|
User uid: $(id -u abc)
|
||||||
|
User gid: $(id -g abc)
|
||||||
|
-------------------------------------
|
||||||
|
"
|
||||||
|
chown abc:abc /app
|
||||||
|
chown abc:abc /config
|
||||||
|
chown abc:abc /defaults
|
Ładowanie…
Reference in New Issue