AItool commited on
Commit
c65e772
·
verified ·
1 Parent(s): 2249298

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -13
Dockerfile CHANGED
@@ -1,28 +1,20 @@
1
  FROM python:3.11-slim
2
 
3
- # 1) bump pip so installs are smoother
4
- RUN pip install --no-cache-dir --upgrade pip
5
 
6
  WORKDIR /app
7
-
8
- # 2) copy everything in your repo
9
  COPY . .
10
 
11
- # 3) create the data folder & make it world-writable ⬅️
12
  RUN mkdir -p data \
13
- && chmod 777 data
 
14
 
15
- # 4) install your Python deps
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # 5) ensure your src/ code is on PYTHONPATH (if you’re not pip-installing it) ⬅️
19
- ENV PYTHONPATH=/app/src
20
-
21
- # 6) expose your FastAPI port
22
  EXPOSE 5001
23
-
24
- # 7) launch Uvicorn
25
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5001"]
26
 
27
 
28
 
 
 
1
  FROM python:3.11-slim
2
 
3
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
 
4
 
5
  WORKDIR /app
 
 
6
  COPY . .
7
 
8
+ # create data folder & sesskey file, open perms
9
  RUN mkdir -p data \
10
+ && touch .sesskey \
11
+ && chmod 777 data .sesskey
12
 
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
 
 
 
15
  EXPOSE 5001
 
 
16
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5001"]
17
 
18
 
19
 
20
+