File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1+ Dockerfile
2+ README.md
3+ tests \* *
Original file line number Diff line number Diff line change 1616env :
1717 # https://github.com/pytest-dev/pytest/issues/2042
1818 PY_IGNORE_IMPORTMISMATCH : " 1"
19- ENV QT_QPA_PLATFORM : offscreen
19+ QT_QPA_PLATFORM : offscreen
2020
2121jobs :
2222 run :
Original file line number Diff line number Diff line change 11# The devcontainer should use the developer target and run as root with podman
22# or docker with user namespaces.
33ARG PYTHON_VERSION=3.11
4- FROM python:${PYTHON_VERSION} as system
4+ FROM python:${PYTHON_VERSION} as developer
55
6- # Add any system dependencies for developer and runtime targets
6+ # Add any system dependencies for the developer/build environment here
77RUN apt-get update && apt-get install -y --no-install-recommends \
88 graphviz \
9+ libglib2.0-0 \
910 libqt5gui5 libxcb-xinerama0 \
1011 && rm -rf /var/lib/apt/lists/*
1112
12- FROM system as developer
13-
1413# Set up a virtual environment and put it in PATH
1514RUN python -m venv /venv
1615ENV PATH=/venv/bin:$PATH
@@ -25,11 +24,16 @@ RUN pip install .
2524
2625# The runtime stage copies the built venv into a slim runtime container
2726FROM python:${PYTHON_VERSION}-slim as runtime
27+
2828# Add apt-get system dependecies for runtime here if needed
29+ RUN apt-get update && apt-get install -y --no-install-recommends \
30+ libqt5gui5 libxcb-xinerama0 \
31+ && rm -rf /var/lib/apt/lists/*
32+
2933COPY --from=build /venv/ /venv/
3034ENV PATH=/venv/bin:$PATH
3135
3236# change this entrypoint if it is not the same as the repo
3337ENTRYPOINT ["dls-pmac-control" ]
34- CMD [ "--version" ]
38+
3539
You can’t perform that action at this time.
0 commit comments