mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	Merge pull request 'Add Dockerfile' (#47) from Korbs/poketube:main into main
Reviewed-on: https://codeberg.org/Ashley/poketube/pulls/47
This commit is contained in:
		
						commit
						4922f61d81
					
				
							
								
								
									
										8
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| .yarn | ||||
| .pnp* | ||||
| .git | ||||
| .gitignore | ||||
| node_modules | ||||
| invidious-source | ||||
| json.sqlite | ||||
| *.md | ||||
							
								
								
									
										34
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| ## To build the image, run: | ||||
| ## docker build -t poketube . | ||||
| 
 | ||||
| ## To run the image, run: | ||||
| ## docker run -d  -p 6003:6003 poketube | ||||
| 
 | ||||
| # Base (Debian) | ||||
| FROM debian | ||||
| 
 | ||||
| # Set Work Directory | ||||
| WORKDIR /poketube | ||||
| COPY . /poketube | ||||
| 
 | ||||
| # Expose Ports | ||||
| EXPOSE 6003 | ||||
| 
 | ||||
| # Install Requirements | ||||
| RUN apt-get update && apt-get -y install \ | ||||
|     libcurl4-openssl-dev make g++ ca-certificates curl gnupg | ||||
| 
 | ||||
| # Install NodeJS v18 | ||||
| RUN mkdir -p /etc/apt/keyrings | ||||
| RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||||
| 
 | ||||
| RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list | ||||
| 
 | ||||
| RUN apt-get update | ||||
| RUN apt-get -y install nodejs | ||||
| 
 | ||||
| # Install Packages | ||||
| RUN npm install | ||||
| 
 | ||||
| # Run | ||||
| CMD npm start | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley