chore: remove dnf cache and unused files from built image (#26)
* chore: add a `dnf clean all` step after installing deps * chore: only copy the required files to the image * fix: add scripts to the image * Switch to .dockerignore file --------- Co-authored-by: Noel Miller <4983138+noelmiller@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									e2fbaa438c
								
							
						
					
					
						commit
						aa4aecdc7e
					
				| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					.devcontainer
 | 
				
			||||||
 | 
					.git*
 | 
				
			||||||
 | 
					*.md
 | 
				
			||||||
 | 
					action.yml
 | 
				
			||||||
 | 
					LICENSE
 | 
				
			||||||
| 
						 | 
					@ -16,10 +16,12 @@ ENV WEB_UI="false"
 | 
				
			||||||
ENV SECURE_BOOT_KEY_URL=""
 | 
					ENV SECURE_BOOT_KEY_URL=""
 | 
				
			||||||
ENV ENROLLMENT_PASSWORD="ublue-os"
 | 
					ENV ENROLLMENT_PASSWORD="ublue-os"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY / /isogenerator
 | 
					COPY ./ /isogenerator
 | 
				
			||||||
WORKDIR /isogenerator
 | 
					WORKDIR /isogenerator
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN dnf install -y make && make install-deps
 | 
					RUN dnf install -y make && \
 | 
				
			||||||
 | 
					  make install-deps && \
 | 
				
			||||||
 | 
					  dnf clean all
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VOLUME /isogenerator/output
 | 
					VOLUME /isogenerator/output
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue