shave a couple of layers
This commit is contained in:
parent
3ecbdf2773
commit
4f96dbe9e3
2 changed files with 3 additions and 8 deletions
|
@ -1,11 +1,7 @@
|
|||
FROM linuxserver/baseimage
|
||||
MAINTAINER smdion <me@seandion.com>
|
||||
ENV LC_ALL C.UTF-8
|
||||
ENV LANG en_US.UTF-8
|
||||
|
||||
|
||||
# Use baseimage-docker's init system
|
||||
CMD ["/sbin/my_init"]
|
||||
ENV LC_ALL="C.UTF-8" LANG="en_US.UTF-8"
|
||||
|
||||
# Install Dependencies
|
||||
RUN add-apt-repository ppa:mc3man/trusty-media && \
|
||||
|
@ -17,8 +13,7 @@ apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/*
|
|||
ADD init/ /etc/my_init.d/
|
||||
ADD services/ /etc/service/
|
||||
ADD defaults/ /defaults
|
||||
RUN chmod -v +x /etc/service/*/run
|
||||
RUN chmod -v +x /etc/my_init.d/*.sh
|
||||
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
|
||||
|
||||
#Volumes and Ports
|
||||
EXPOSE 8181
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
if [ ! -f /config/config.ini ]; then
|
||||
if [ ! -f /config/config.ini ]; then
|
||||
/sbin/setuser abc cp -v /defaults/config.ini /config/config.ini
|
||||
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue