tech-envision commited on
Commit
ddfbd88
·
1 Parent(s): 9448a0a

Add custom Ubuntu VM Dockerfile and usage docs

Browse files
Files changed (2) hide show
  1. README.md +31 -0
  2. docker/Dockerfile.vm +14 -0
README.md CHANGED
@@ -72,3 +72,34 @@ it pulls the image defined by the ``VM_IMAGE`` environment variable, falling
72
  back to ``python:3.11-slim``. This base image includes Python and ``pip`` so
73
  packages can be installed immediately. The container has network access enabled
74
  which allows fetching additional dependencies as needed.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  back to ``python:3.11-slim``. This base image includes Python and ``pip`` so
73
  packages can be installed immediately. The container has network access enabled
74
  which allows fetching additional dependencies as needed.
75
+
76
+ To use a fully featured Ubuntu environment, build a custom Docker image and set
77
+ ``VM_IMAGE`` to that image. An example ``docker/Dockerfile.vm`` is provided:
78
+
79
+ ```Dockerfile
80
+ FROM ubuntu:22.04
81
+
82
+ # Install core utilities and Python
83
+ RUN apt-get update && \
84
+ apt-get install -y --no-install-recommends \
85
+ python3 \
86
+ python3-pip \
87
+ sudo \
88
+ curl \
89
+ git \
90
+ build-essential \
91
+ && rm -rf /var/lib/apt/lists/*
92
+
93
+ CMD ["sleep", "infinity"]
94
+ ```
95
+
96
+ Build and run with:
97
+
98
+ ```bash
99
+ docker build -t llm-vm -f docker/Dockerfile.vm .
100
+ export VM_IMAGE=llm-vm
101
+ python run.py
102
+ ```
103
+
104
+ The custom VM includes typical utilities like ``sudo`` and ``curl`` so it behaves
105
+ more like a standard Ubuntu installation.
docker/Dockerfile.vm ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ # Install core utilities and Python
4
+ RUN apt-get update \
5
+ && apt-get install -y --no-install-recommends \
6
+ python3 \
7
+ python3-pip \
8
+ sudo \
9
+ curl \
10
+ git \
11
+ build-essential \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ CMD ["sleep", "infinity"]