MayongSaputra14 commited on
Commit
4524c6f
·
verified ·
1 Parent(s): 82f6dc4

Upload 3 files

Browse files

Add 3 files fto set up the space

Files changed (3) hide show
  1. Dockerfile +14 -0
  2. requirements.txt +3 -0
  3. trained_mdp_policy.json +0 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13-slim
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /code
8
+
9
+ COPY --chown=user ./requirements.txt /code/requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
+
12
+ COPY --chown=user . .
13
+
14
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ fastapi>=0.115.8
2
+ uvicorn>=0.30.0
3
+ pydantic>=2.10.0
trained_mdp_policy.json ADDED
The diff for this file is too large to render. See raw diff