Addyk24 commited on
Commit
675c21c
·
1 Parent(s): fdd6ae0

Added basic configs for env needed with dockerfile for deployment on space

Browse files
Files changed (4) hide show
  1. .dockerignore +23 -0
  2. .gitignore +3 -0
  3. Dockerfile +23 -0
  4. pyproject.toml +12 -4
.dockerignore ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Virtual environments
2
+ .venv
3
+ venv
4
+ env
5
+
6
+ # Python cache
7
+ __pycache__
8
+ *.pyc
9
+ *.pyo
10
+ *.pyd
11
+
12
+ # Git and OS files
13
+ .git
14
+ .DS_Store
15
+
16
+ # Hugging Face / Model Caches
17
+ .cache
18
+
19
+ venv/
20
+ env/
21
+ .git/
22
+ __pycache__/
23
+ *.log
.gitignore CHANGED
@@ -6,6 +6,9 @@ __pycache__/
6
  # C extensions
7
  *.so
8
 
 
 
 
9
  # Distribution / packaging
10
  .Python
11
  build/
 
6
  # C extensions
7
  *.so
8
 
9
+ ignore_files/
10
+ error.py
11
+ system_workflow.txt
12
  # Distribution / packaging
13
  .Python
14
  build/
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM public.ecr.aws/docker/library/python:3.11-slim
2
+
3
+
4
+ RUN useradd -m -u 1000 user
5
+
6
+ WORKDIR /app
7
+
8
+ COPY --chown=user:user requirements.txt .
9
+
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ COPY --chown=user:user . .
13
+
14
+ USER user
15
+
16
+ ENV PYTHONUNBUFFERED=1 \
17
+ PYTHONDONTWRITEBYTECODE=1 \
18
+ PYTHONPATH=/app \
19
+ HOME=/home/user
20
+
21
+ EXPOSE 7860
22
+
23
+ CMD ["python", "server/app.py"]
pyproject.toml CHANGED
@@ -1,7 +1,15 @@
1
  [project]
2
  name = "project-polymath"
3
  version = "0.1.0"
4
- description = "Add your description here"
5
- readme = "README.md"
6
- requires-python = ">=3.13"
7
- dependencies = []
 
 
 
 
 
 
 
 
 
1
  [project]
2
  name = "project-polymath"
3
  version = "0.1.0"
4
+ description = "Multi-agent PRD negotiation environment"
5
+ dependencies = [
6
+ "openenv-core>=0.2.0",
7
+ "pydantic",
8
+ "groq",
9
+ "fastapi",
10
+ "uvicorn",
11
+ "python-dotenv"
12
+ ]
13
+
14
+ [project.scripts]
15
+ server = "server.app:main"