forked from NillionNetwork/nillion-python-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (38 loc) · 985 Bytes
/
docker-compose.yml
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
34
35
36
37
38
version: '3.8'
services:
demo:
container_name: nillion
build:
context: .
dockerfile_inline: |
FROM python:3.10-slim
ARG DEBIAN_FRONTEND="noninteractive"
SHELL ["/bin/bash", "-o", "pipefail", "-xe", "-c"]
RUN apt update; \
apt install -y --no-install-recommends \
jq; \
apt clean; \
rm -rf /var/lib/apt/lists/*; \
pip install --upgrade pip; \
groupadd -r nillion; \
useradd -rm -g nillion nillion;
USER nillion
network_mode: 'bridge'
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- NILLION_SDK_ROOT=/sdk
volumes:
- '$PWD/..:/host'
- $NILLION_SDK_ROOT:/sdk
working_dir: /host
command:
- /bin/bash
- '-c'
- |
source ./utils.sh
check_for_sdk_root
install_nada_dsl
pushd permissions
./bootstrap-local-environment.sh