sarmaddev commited on
Commit
30a4cad
·
1 Parent(s): c633779

fixing container issue

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -28
Dockerfile CHANGED
@@ -1,36 +1,11 @@
1
  FROM python:3.10-slim
2
 
3
- # Instruct uv to install packages into the system Python environment (recommended in containerized environments)
4
- ENV UV_SYSTEM_PYTHON=1
5
-
6
- # Install uv with pip
7
- RUN pip install --no-cache-dir uv
8
-
9
- # Set the working directory inside the container
10
  WORKDIR /app
11
-
12
- # Copy the rest of your project files into the image.
13
- # Make sure your .dockerignore excludes .venv so that any local virtual environment is not copied.
14
  COPY . .
15
 
 
 
 
16
 
17
- FROM python:3.10-slim
18
-
19
- WORKDIR /app
20
-
21
- COPY . .
22
-
23
- RUN pip install --no-cache-dir -r requirements.txt
24
-
25
- CMD ["chainlit", "run", "app.py", "-w"]
26
-
27
-
28
- # Add the .venv/bin directory to the PATH so that chainlit is accessible
29
- ENV PATH="/app/.venv/bin:${PATH}"
30
-
31
-
32
- # Expose the port used by your Chainlit app (modify the port as needed)
33
  EXPOSE 7860
34
-
35
- # Start the Chainlit app
36
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
 
 
 
 
 
 
 
3
  WORKDIR /app
 
 
 
4
  COPY . .
5
 
6
+ RUN pip install --no-cache-dir -r requirements.txt \
7
+ && mkdir -p /app/.files \
8
+ && chmod -R 777 /app/.files
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  EXPOSE 7860
 
 
11
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]