Moved some stuff in dockerfile
This commit is contained in:
parent
09f8ae55a5
commit
5ed09aa819
1 changed files with 10 additions and 8 deletions
18
Dockerfile
18
Dockerfile
|
@ -14,11 +14,9 @@ RUN apt-get update
|
||||||
RUN apt-get install -qy git mc ffmpeg python wget
|
RUN apt-get install -qy git mc ffmpeg python wget
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/*
|
||||||
|
|
||||||
#Volumes and Ports
|
#Adduser
|
||||||
EXPOSE 8181
|
RUN useradd -u 911 -U -s /bin/false abc
|
||||||
VOLUME /config
|
RUN usermod -G users abc
|
||||||
VOLUME /downloads
|
|
||||||
VOLUME /music
|
|
||||||
|
|
||||||
#Adding Custom files
|
#Adding Custom files
|
||||||
ADD init/ /etc/my_init.d/
|
ADD init/ /etc/my_init.d/
|
||||||
|
@ -27,6 +25,10 @@ ADD defaults/ /defaults
|
||||||
RUN chmod -v +x /etc/service/*/run
|
RUN chmod -v +x /etc/service/*/run
|
||||||
RUN chmod -v +x /etc/my_init.d/*.sh
|
RUN chmod -v +x /etc/my_init.d/*.sh
|
||||||
|
|
||||||
#Adduser
|
#Volumes and Ports
|
||||||
RUN useradd -u 911 -U -s /bin/false abc
|
EXPOSE 8181
|
||||||
RUN usermod -G users abc
|
VOLUME /config
|
||||||
|
VOLUME /downloads
|
||||||
|
VOLUME /music
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue