fix strange link and add actual files
This commit is contained in:
parent
d3242b104c
commit
900545c2c9
55
Dockerfile
Normal file
55
Dockerfile
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
FROM scratch
|
||||
ADD rootfs.tar.gz /
|
||||
|
||||
MAINTAINER sparklyballs
|
||||
|
||||
# set arch for s6 overlay
|
||||
ARG OVERLAY_ARCH="${OVERLAY_ARCH:-amd64}"
|
||||
|
||||
# environment variables
|
||||
ENV PS1="$(whoami)@$(hostname):$(pwd)$ " \
|
||||
HOME="/root" \
|
||||
TERM="xterm"
|
||||
|
||||
# install packages
|
||||
RUN \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
tar && \
|
||||
apk add --no-cache \
|
||||
bash \
|
||||
ca-certificates \
|
||||
coreutils \
|
||||
shadow \
|
||||
tzdata && \
|
||||
|
||||
# add s6 overlay
|
||||
OVERLAY_VERSION=$(curl -sX GET "https://api.github.com/repos/just-containers/s6-overlay/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||
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
|
||||
groupmod -g 1000 users && \
|
||||
useradd -u 911 -U -d /config -s /bin/false abc && \
|
||||
usermod -G users abc && \
|
||||
|
||||
# make our folders
|
||||
mkdir -p \
|
||||
/app \
|
||||
/config \
|
||||
/defaults && \
|
||||
|
||||
# clean up
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
||||
ENTRYPOINT ["/init"]
|
||||
18
README.md
Normal file
18
README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[linuxserverurl]: https://linuxserver.io
|
||||
[forumurl]: https://forum.linuxserver.io
|
||||
[ircurl]: https://www.linuxserver.io/irc/
|
||||
[podcasturl]: https://www.linuxserver.io/podcast/
|
||||
|
||||
[][linuxserverurl]
|
||||
|
||||
[Dockerfile](https://github.com/linuxserver/docker-baseimage-alpine/blob/master/Dockerfile)
|
||||
|
||||
[](https://microbadger.com/images/lsiobase/alpine "Get your own image badge on microbadger.com")[](http://jenkins.linuxserver.io:8080/job/Dockers/job/BaseImages/job/lsiobase-alpine/)
|
||||
|
||||
### 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 [Alpine Linux](https://hub.docker.com/_/alpine/) and [S6 overlay](https://github.com/just-containers/s6-overlay).
|
||||
|
||||
If you want to comment\contribute to this image, are looking for support on any of our other work , or are curious about us in general, check out the following.
|
||||
|
||||
* [forum.linuxserver.io][forumurl]
|
||||
* [IRC][ircurl] on freenode at `#linuxserver.io`
|
||||
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b449725720922b2fcadcf19012d3e69cc63f86df
|
||||
30
root/etc/cont-init.d/10-adduser
Normal file
30
root/etc/cont-init.d/10-adduser
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
PUID=${PUID:-911}
|
||||
PGID=${PGID:-911}
|
||||
|
||||
groupmod -o -g "$PGID" abc
|
||||
usermod -o -u "$PUID" abc
|
||||
|
||||
echo "
|
||||
-------------------------------------
|
||||
_ _ _
|
||||
| |___| (_) ___
|
||||
| / __| | |/ _ \
|
||||
| \__ \ | | (_) |
|
||||
|_|___/ |_|\___/
|
||||
|_|
|
||||
|
||||
Brought to you by linuxserver.io
|
||||
We gratefully 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
|
||||
Loading…
Reference in a new issue