Skip to content
Snippets Groups Projects
Commit ad6558e6 authored by sparklyballs's avatar sparklyballs
Browse files

first commit

parents
No related branches found
No related tags found
No related merge requests found
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"]
![https://linuxserver.io](https://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)
### 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).
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment