File: docker.md

package info (click to toggle)
python-trame 3.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 101,620 kB
  • sloc: python: 13,515; sh: 183; javascript: 93; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 882 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Docker

Trame applications can easily be deployed in the cloud via docker.

For instance you could deploy the following on a CapRover instance by just running `caprover deploy`

[![Simple deployment over https](/assets/images/deployment/cone-caprover.png)](https://github.com/Kitware/trame-app-cone)

::: code-group

```Dockerfile
FROM kitware/trame:py3.10-glvnd

RUN apt-get update \
    && apt-get install -y \
    libxrender1 \
    && rm -rf /var/lib/apt/lists/*

COPY --chown=trame-user:trame-user . /deploy

RUN /opt/trame/entrypoint.sh build
```

```captain-definition
{
  "schemaVersion": 2,
  "dockerfilePath": "./Dockerfile"
}
```
<<< @/../../examples/deploy/docker/VtkRendering/app.py
<<< @/../../examples/deploy/docker/VtkRendering/setup/apps.yml [./setup/apps.yaml]
<<< @/../../examples/deploy/docker/VtkRendering/setup/requirements.txt [./setup/requirements.txt]
:::