File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Base OS
2- FROM ubuntu:24.04
2+ FROM ubuntu:24.04 AS qsim-base
33
44# Allow passing this variable in from the outside.
55ARG CUDA_PATH
Original file line number Diff line number Diff line change 11services :
2- qsim :
3- image : qsim
4- container_name : qsim
2+ qsim-base-image :
3+ image : qsim-base
4+ platform : linux/amd64
55 build :
66 context : ./
77 dockerfile : Dockerfile
8- qsim-cxx-tests :
8+ target : qsim-base
9+
10+ qsim-cxx-tests-image :
911 image : qsim-cxx-tests
10- container_name : qsim-cxx-tests
1112 build :
1213 context : ./
1314 dockerfile : tests/Dockerfile
15+ target : qsim-cxx-tests
1416 depends_on :
15- - qsim
16- qsim-py-tests :
17+ - qsim-base-image
18+
19+ qsim-py-tests-image :
1720 image : qsim-py-tests
18- container_name : qsim-py-tests
1921 build :
2022 context : ./
2123 dockerfile : pybind_interface/Dockerfile
24+ target : qsim-py-tests
2225 depends_on :
23- - qsim
26+ - qsim-base-image
Original file line number Diff line number Diff line change 11# Base OS
2- FROM qsim
2+ FROM qsim-base AS qsim-py-tests
33
44# Copy relevant files
55COPY ./pybind_interface/ /qsim/pybind_interface/
Original file line number Diff line number Diff line change 11# Base OS
2- FROM qsim
2+ FROM qsim-base AS qsim-cxx-tests
33
44# Copy relevant files
55COPY ./tests/ /qsim/tests/
You can’t perform that action at this time.
0 commit comments