File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1111# Set up a virtual environment and put it in PATH
1212RUN python -m venv /venv
1313ENV PATH=/venv/bin:$PATH
14+
15+ # The build stage installs the context into the venv
16+ FROM developer AS build
17+ COPY . /context
18+ WORKDIR /context
19+ RUN touch dev-requirements.txt && pip install -c dev-requirements.txt .
20+
21+ # The runtime stage copies the built venv into a slim runtime container
22+ FROM python:${PYTHON_VERSION}-slim AS runtime
23+ # Add apt-get system dependecies for runtime here if needed
24+ COPY --from=build /venv/ /venv/
25+ ENV PATH=/venv/bin:$PATH
26+
27+ # change this entrypoint if it is not the same as the repo
28+ ENTRYPOINT ["atip" ]
29+ CMD ["--version" ]
Original file line number Diff line number Diff line change @@ -32,7 +32,12 @@ simulation.
3232Source | < https://github.com/DiamondLightSource/atip >
3333:---: | :---:
3434PyPI | ` pip install atip `
35+ <<<<<<< before updating
3536Documentation | < https://atip.readthedocs.io/en/latest/ >
37+ =======
38+ Docker | ` docker run ghcr.io/diamondlightsource/atip:latest `
39+ Documentation | < https://diamondlightsource.github.io/atip >
40+ >>>>>>> after updating
3641 Releases | <https://github.com/DiamondLightSource/atip/releases>
3742
3843Installation:
Original file line number Diff line number Diff line change 1+ # Run in a container
2+
3+ Pre-built containers with atip and its dependencies already
4+ installed are available on [ Github Container Registry] ( https://ghcr.io/DiamondLightSource/atip ) .
5+
6+ ## Starting the container
7+
8+ To pull the container from github container registry and run:
9+
10+ ```
11+ $ docker run ghcr.io/diamondlightsource/atip:latest --version
12+ ```
13+
14+ To get a released version, use a numbered release instead of ` latest ` .
You can’t perform that action at this time.
0 commit comments