ianalin123 commited on
Commit
039a8a2
·
1 Parent(s): 883cccb

Add OpenEnv manifest and deployment packaging

Browse files
Files changed (3) hide show
  1. Dockerfile +12 -0
  2. openenv.yaml +6 -0
  3. pyproject.toml +20 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/meta-pytorch/openenv-base:latest
2
+
3
+ WORKDIR /app
4
+
5
+ COPY . /app
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt \
8
+ && pip install --no-cache-dir "openenv-core[core]>=0.2.1"
9
+
10
+ ENV ENABLE_WEB_INTERFACE=false
11
+
12
+ CMD ["uvicorn", "openenv_server.app:app", "--host", "0.0.0.0", "--port", "8000"]
openenv.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ spec_version: 1
2
+ name: optigami
3
+ type: space
4
+ runtime: fastapi
5
+ app: openenv_server.app:app
6
+ port: 8000
pyproject.toml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["hatchling>=1.25.0"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "optigami"
7
+ version = "0.1.0"
8
+ description = "Optigami OpenEnv origami environment"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ dependencies = [
12
+ "fastapi>=0.100.0",
13
+ "numpy>=1.24.0",
14
+ "openenv-core[core]>=0.2.1",
15
+ "pydantic>=2.0.0",
16
+ "shapely>=2.0.0",
17
+ ]
18
+
19
+ [tool.pytest.ini_options]
20
+ pythonpath = ["."]