mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	dockerfile: reduce number of COPY layers
This commit is contained in:
		
							parent
							
								
									1f801993e3
								
							
						
					
					
						commit
						3463511601
					
				
					 1 changed files with 4 additions and 7 deletions
				
			
		
							
								
								
									
										11
									
								
								Dockerfile
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -19,8 +19,9 @@ RUN apt-get update -qq \
 | 
			
		|||
 && rm -rf /var/lib/apt/lists
 | 
			
		||||
 | 
			
		||||
COPY . /
 | 
			
		||||
RUN make && \
 | 
			
		||||
    make install
 | 
			
		||||
RUN make \
 | 
			
		||||
 && make install \
 | 
			
		||||
 && mkdir dist && cp yosys yosys-abc yosys-config yosys-filterlib yosys-smtbmc dist/
 | 
			
		||||
 | 
			
		||||
FROM ubuntu:18.04
 | 
			
		||||
RUN apt-get update -qq \
 | 
			
		||||
| 
						 | 
				
			
			@ -28,11 +29,7 @@ RUN apt-get update -qq \
 | 
			
		|||
    libreadline-dev \
 | 
			
		||||
    tcl-dev
 | 
			
		||||
 | 
			
		||||
COPY --from=builder /yosys /build/yosys
 | 
			
		||||
COPY --from=builder /yosys-abc /build/yosys-abc
 | 
			
		||||
COPY --from=builder /yosys-config /build/yosys-config
 | 
			
		||||
COPY --from=builder /yosys-filterlib /build/yosys-filterlib
 | 
			
		||||
COPY --from=builder /yosys-smtbmc /build/yosys-smtbmc
 | 
			
		||||
COPY --from=builder /dist /build
 | 
			
		||||
 | 
			
		||||
ENV PATH /build:$PATH
 | 
			
		||||
RUN useradd -m yosys
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue