Install plex with auto-update script
This commit is contained in:
		
							parent
							
								
									2ce1c4fafc
								
							
						
					
					
						commit
						0ca861a2de
					
				|  | @ -1,8 +1,12 @@ | ||||||
| FROM kelvinchen/seedbox:base | FROM buildpack-deps:xenial-scm | ||||||
| MAINTAINER Kelvin Chen <kelvin@kelvinchen.org> | MAINTAINER Kelvin Chen <kelvin@kelvinchen.org> | ||||||
| 
 | 
 | ||||||
| RUN curl -sL "https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu&X-Plex-Token=" > /tmp/plex.deb \ | # Download plexupdate script and install Plex | ||||||
|     && dpkg -i /tmp/plex.deb \ | # This script can be later used to update Plex directly in the container | ||||||
|  | RUN curl -sL "https://github.com/mrworf/plexupdate/raw/master/plexupdate.sh" \ | ||||||
|  |         > /usr/local/bin/plexupdate \ | ||||||
|  |     && chmod +x /usr/local/bin/plexupdate \ | ||||||
|  |     && plexupdate -pad \ | ||||||
|     && apt-get clean \ |     && apt-get clean \ | ||||||
|     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||||||
| 
 | 
 | ||||||
|  | @ -11,6 +15,6 @@ VOLUME /config | ||||||
| EXPOSE 32400 | EXPOSE 32400 | ||||||
| 
 | 
 | ||||||
| COPY plexmediaserver /etc/default/plexmediaserver | COPY plexmediaserver /etc/default/plexmediaserver | ||||||
| COPY start Preferences.xml / | COPY init Preferences.xml / | ||||||
| 
 | 
 | ||||||
| CMD ["/start"] | CMD ["/init"] | ||||||
|  |  | ||||||
|  | @ -2,6 +2,6 @@ | ||||||
| 
 | 
 | ||||||
| mkdir -p "/config/Plex Media Server/" | mkdir -p "/config/Plex Media Server/" | ||||||
| cp -n /Preferences.xml "/config/Plex Media Server/" | cp -n /Preferences.xml "/config/Plex Media Server/" | ||||||
| rm "/config/Plex Media Server/plexmediaserver.pid" | rm -f "/config/Plex Media Server/plexmediaserver.pid" | ||||||
| 
 | 
 | ||||||
| start_pms > /dev/null 2>&1 | start_pms > /dev/null 2>&1 | ||||||
		Loading…
	
		Reference in New Issue