Skip to content

Commit 2652316

Browse files
committed
Result of running copier update --trust
1 parent 6845633 commit 2652316

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1212
RUN python -m venv /venv
1313
ENV 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"]

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ simulation.
3232
Source | <https://github.com/DiamondLightSource/atip>
3333
:---: | :---:
3434
PyPI | `pip install atip`
35+
<<<<<<< before updating
3536
Documentation | <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
3843
Installation:

docs/how-to/run-container.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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`.

0 commit comments

Comments
 (0)