18 lines
432 B
Plaintext
18 lines
432 B
Plaintext
# Python dev environment in a hardware-isolated microVM
|
|
#
|
|
# smolvm machine run -s examples/python-app/python.smolfile
|
|
# smolvm machine create --name dev -s python.smolfile
|
|
# smolvm machine start --name dev
|
|
# smolvm machine exec --name dev -- python3 --version
|
|
|
|
image = "python:3.12-alpine"
|
|
entrypoint = ["python3"]
|
|
|
|
cpus = 2
|
|
memory = 512
|
|
net = true
|
|
|
|
[dev]
|
|
ports = ["8080:8080"]
|
|
init = ["pip install --no-cache-dir ipython"]
|