rebase to use lsiobase/xenial
This commit is contained in:
parent
501683a3d5
commit
0a89101b94
2 changed files with 1 additions and 52 deletions
22
Dockerfile
22
Dockerfile
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:16.04
|
FROM lsiobase/xenial
|
||||||
MAINTAINER Stian Larsen, sparklyballs
|
MAINTAINER Stian Larsen, sparklyballs
|
||||||
|
|
||||||
# global environment settings
|
# global environment settings
|
||||||
|
|
@ -6,30 +6,13 @@ ENV DEBIAN_FRONTEND="noninteractive"
|
||||||
ENV HOME="/config"
|
ENV HOME="/config"
|
||||||
ENV TERM="xterm"
|
ENV TERM="xterm"
|
||||||
|
|
||||||
# add abc user and make folders
|
|
||||||
RUN \
|
|
||||||
useradd -u 911 -U -d /config -s /bin/false abc && \
|
|
||||||
usermod -G users abc && \
|
|
||||||
mkdir -p \
|
|
||||||
/config
|
|
||||||
|
|
||||||
# install packages
|
# install packages
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y \
|
|
||||||
apt-utils && \
|
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
avahi-daemon \
|
avahi-daemon \
|
||||||
curl \
|
|
||||||
dbus \
|
dbus \
|
||||||
wget && \
|
wget && \
|
||||||
|
|
||||||
# add s6 overlay
|
|
||||||
curl -o \
|
|
||||||
/tmp/s6.tar.gz -L \
|
|
||||||
https://github.com/just-containers/s6-overlay/releases/download/v1.17.2.0/s6-overlay-amd64.tar.gz && \
|
|
||||||
tar xvf /tmp/s6.tar.gz -C / && \
|
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
||||||
|
|
@ -42,9 +25,6 @@ RUN \
|
||||||
dpkg -i /tmp/plexmediaserver.deb && \
|
dpkg -i /tmp/plexmediaserver.deb && \
|
||||||
rm -f /tmp/plexmediaserver.deb
|
rm -f /tmp/plexmediaserver.deb
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT ["/init"]
|
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
#!/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 /config
|
|
||||||
chown abc:abc /defaults
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue