mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-29 02:39:24 +00:00 
			
		
		
		
	* Update docker-image.yml towards tweaking script to use ghcr * Update docker-image.yml * Update docker-image.yml * Update docker-image.yml change usr/pwd to names that are more descriptive * Update docker-image.yml rename back to use DOCKER prefix it remains to bind to ghcr.io instead of docker.io * Update ubuntu-20-04.Dockerfile try to use ghcr instead of docker.io * Update docker-image.yml try with chcr token * Update docker-image.yml * Update docker-image.yml * Update docker-image.yml * Update ubuntu-20-04.Dockerfile * Update docker-image.yml
		
			
				
	
	
		
			45 lines
		
	
	
	
		
			974 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
	
		
			974 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # -------------
 | |
| # OS Base image
 | |
| # -------------
 | |
| # >> Includes system-wide dependencies
 | |
| FROM ubuntu:20.04 as lib-base
 | |
| ARG DEBIAN_FRONTEND=noninteractive
 | |
| RUN apt-get update && \
 | |
|     apt-get -y --no-install-recommends install \
 | |
|         cmake \
 | |
|         make \
 | |
|         clang \
 | |
|         g++ \
 | |
|         curl \
 | |
|         default-jdk \
 | |
|         python3 \
 | |
|         python3-setuptools \
 | |
|         python-is-python3 \
 | |
|         sudo
 | |
| 
 | |
| # ----------------
 | |
| # Z3 Builder Image
 | |
| # ----------------
 | |
| # >> Includes build files and compiles the basic z3 sources
 | |
| FROM lib-base as builder
 | |
| COPY ./ /z3-source/
 | |
| WORKDIR /z3-source/
 | |
| RUN python scripts/mk_make.py
 | |
| WORKDIR /z3-source/build/
 | |
| RUN make
 | |
| RUN sudo make install
 | |
| WORKDIR /z3-source/
 | |
| 
 | |
| # -------
 | |
| # Bare z3
 | |
| # -------
 | |
| # >> Includes only stnadard z3 installations.
 | |
| # >> Can be used as a standalone interface to z3.
 | |
| FROM builder as bare-z3
 | |
| ENTRYPOINT [ "z3" ]
 | |
| 
 | |
| # TODO: introduce Python-binding stage
 | |
| # ...
 | |
| 
 | |
| # TODO(optional): introduce C/C++ -binding stage
 | |
| # ...
 |