rebase to alpine

This commit is contained in:
sparklyballs 2016-07-02 00:37:13 +01:00
parent b602601083
commit 1192fe4ee1
5 changed files with 24 additions and 28 deletions

View File

@ -1,24 +1,17 @@
FROM linuxserver/baseimage
MAINTAINER lonix <lonixx@gmail.com>
ENV APTLIST="syncthing"
FROM lsiobase/alpine
MAINTAINER sparklyballs
#Applying stuff
RUN curl -s https://syncthing.net/release-key.txt | apt-key add - && \
echo deb http://apt.syncthing.net/ syncthing release | tee /etc/apt/sources.list.d/syncthing-release.list && \
apt-get update -q && \
apt-get install -qy $APTLIST && \
# environment settings
ENV HOME="/config"
# give abc home folder of /config
usermod -d /config abc && \
# install packages
RUN \
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/community \
syncthing
# clean up
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
# add local files
COPY root/ /
#Adding Custom files
ADD services/ /etc/service/
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
# Volumes and Ports
# ports and volumes
VOLUME ["/config", "/sync"]
EXPOSE 8384 22000 21027/UDP
EXPOSE 8384 22000 21027/UDP

View File

@ -1,6 +1,6 @@
![https://linuxserver.io](https://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring auto-update on startup, easy user mapping and community support. Find us for support at:
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring easy user mapping and community support. Find us for support at:
* [forum.linuxserver.io](https://forum.linuxserver.io)
* [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`
@ -52,10 +52,10 @@ You can find some of the best documentation available on the web at [docs.syncth
## Misc
* Shell access whilst the container is running: `docker exec -it syncthing /bin/bash`
* Upgrade to the latest version: `docker restart syncthing`
* To monitor the logs of the container in realtime: `docker logs -f syncthing`
## Versions
+ **18.12.2015:** Initial testing / release (IronicBadger)
+ **24.09.2015:** Inital dev complete (Lonix)
+ **02.07.16:** Rebase to alpine for smaller image size.
+ **18.12.15:** Initial testing / release (IronicBadger)
+ **24.09.15:** Inital dev complete (Lonix)

View File

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv sh
chown abc:abc /sync

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
umask 0000
exec s6-setuidgid abc syncthing -home=/config -no-browser -no-restart --gui-address="0.0.0.0:8384"

View File

@ -1,5 +0,0 @@
#!/bin/bash
umask 0000
exec /sbin/setuser abc syncthing -home=/config -no-browser -no-restart --gui-address="0.0.0.0:8384"