xdragxt commited on
Commit
cdecd96
·
verified ·
1 Parent(s): 67913a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -4,7 +4,7 @@ WORKDIR /app
4
 
5
  COPY . /app
6
 
7
- # Install build tools for tgcrypto
8
  RUN apt-get update && \
9
  apt-get install -y gcc && \
10
  pip install --no-cache-dir --upgrade pip && \
@@ -13,8 +13,12 @@ RUN apt-get update && \
13
  apt-get autoremove -y && \
14
  rm -rf /var/lib/apt/lists/*
15
 
16
- # Ensure modules directory exists and is writable
 
17
  RUN mkdir -p /app/modules && chmod 777 /app/modules
18
  RUN mkdir -p /app/sessions && chmod 777 /app/sessions
19
 
20
- CMD ["python", "jarvis.py"]
 
 
 
 
4
 
5
  COPY . /app
6
 
7
+ # Install build tools and dependencies
8
  RUN apt-get update && \
9
  apt-get install -y gcc && \
10
  pip install --no-cache-dir --upgrade pip && \
 
13
  apt-get autoremove -y && \
14
  rm -rf /var/lib/apt/lists/*
15
 
16
+ RUN pip3 install uvicorn fastapi
17
+ # Ensure writable directories
18
  RUN mkdir -p /app/modules && chmod 777 /app/modules
19
  RUN mkdir -p /app/sessions && chmod 777 /app/sessions
20
 
21
+ # Start the FastAPI app
22
+
23
+
24
+ CMD bash start & python3 server.py