You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			984 B
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			20 lines
		
	
	
		
			984 B
		
	
	
	
		
			Docker
		
	
# Dockerfile oxidized_app:0.1.0 example
 | 
						|
 | 
						|
FROM pyoxidizer-build:0.22.0 as builder
 | 
						|
RUN apt update && apt install python3-dev libpq-dev clang -y
 | 
						|
WORKDIR /home
 | 
						|
COPY ./app/* /home/
 | 
						|
# RUN pyoxidizer build --target-triple x86_64-unknown-linux-musl
 | 
						|
RUN pyoxidizer build --target-triple x86_64-unknown-linux-gnu
 | 
						|
# RUN ldd /home/build/x86_64-unknown-linux-musl/debug/exe/quickemu_watcher
 | 
						|
RUN ldd /home/build/x86_64-unknown-linux-gnu/debug/exe/quickemu_watcher
 | 
						|
# RUN ls -lahk /home/build/x86_64-unknown-linux-musl/debug/exe/quickemu_watcher 
 | 
						|
RUN ls -lahk /home/build/x86_64-unknown-linux-gnu/debug/exe/quickemu_watcher 
 | 
						|
# copy then compile 
 | 
						|
#RUN cargo build --release 
 | 
						|
#RUN cargo install --target x86_64-unknown-linux-musl --path .
 | 
						|
FROM ubuntu:jammy-20220801
 | 
						|
# COPY --from=builder /home/build/x86_64-unknown-linux-musl/debug/exe/quickemu_watcher /quickemu_watcher
 | 
						|
COPY --from=builder /home/build/x86_64-unknown-linux-gnu/debug/exe/quickemu_watcher /quickemu_watcher
 | 
						|
 | 
						|
CMD [ "/quickemu_watcher" ]  |