Sriram611 commited on
Commit
16111ee
·
1 Parent(s): eb646a8

Fix all dependencies and paths

Browse files
Files changed (3) hide show
  1. Dockerfile +6 -5
  2. requirements.txt +8 -0
  3. setup.py +2 -4
Dockerfile CHANGED
@@ -2,15 +2,16 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
- RUN pip install --no-cache-dir -e .
10
 
11
- EXPOSE 7860
12
-
13
- ENV DIFFICULTY=normal
14
- ENV CRISIS_EVERY=3
15
 
 
 
16
  CMD ["uvicorn", "revops_gym.server:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # 1. Install standard requirements
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # 2. Copy the rest of the code
10
  COPY . .
 
11
 
12
+ # 3. Install the local package (RevOps Gym)
13
+ RUN pip install --no-cache-dir .
 
 
14
 
15
+ # 4. Start the server
16
+ # Make sure server.py contains: app = FastAPI()
17
  CMD ["uvicorn", "revops_gym.server:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ pydantic
4
+ gymnasium
5
+ numpy
6
+ matplotlib
7
+ requests
8
+ pandas
setup.py CHANGED
@@ -3,8 +3,6 @@ from setuptools import setup, find_packages
3
  setup(
4
  name="revops_gym",
5
  version="0.1.0",
6
- description="A Gymnasium environment for SaaS Revenue Operations",
7
- author="Your Name",
8
  packages=find_packages(),
9
  install_requires=[
10
  "gymnasium",
@@ -13,7 +11,7 @@ setup(
13
  "fastapi",
14
  "uvicorn",
15
  "pydantic",
16
- "matplotlib"
 
17
  ],
18
- python_requires=">=3.9",
19
  )
 
3
  setup(
4
  name="revops_gym",
5
  version="0.1.0",
 
 
6
  packages=find_packages(),
7
  install_requires=[
8
  "gymnasium",
 
11
  "fastapi",
12
  "uvicorn",
13
  "pydantic",
14
+ "matplotlib",
15
+ "requests"
16
  ],
 
17
  )