shoshana-levitt commited on
Commit
f86066a
·
verified ·
1 Parent(s): 19743ec

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -42
Dockerfile DELETED
@@ -1,42 +0,0 @@
1
- # FROM python:3.9
2
- # RUN useradd -m -u 1000 user
3
- # USER user
4
- # ENV HOME=/home/user \
5
- # PATH=/home/user/.local/bin:$PATH
6
- # WORKDIR $HOME/app
7
- # COPY --chown=user . $HOME/app
8
- # COPY ./requirements.txt ~/app/requirements.txt
9
- # RUN pip install --no-cache-dir -r requirements.txt
10
- # COPY . .
11
- # CMD ["chainlit", "run", "app.py", "--port", "7860"]
12
-
13
- # Use the official Python image from the Docker Hub
14
- FROM python:3.9
15
-
16
- # Create a user with the UID 1000
17
- RUN useradd -m -u 1000 user
18
-
19
- # Switch to the user
20
- USER user
21
-
22
- # Set environment variables
23
- ENV HOME=/home/user \
24
- PATH=/home/user/.local/bin:$PATH
25
-
26
- # Create the app directory
27
- WORKDIR $HOME/app
28
-
29
- # Copy requirements file first to leverage Docker cache
30
- COPY --chown=user requirements.txt .
31
-
32
- # Update pip, setuptools, and wheel
33
- RUN pip install --no-cache-dir --upgrade pip setuptools wheel
34
-
35
- # Install dependencies in batches to identify slow packages
36
- RUN pip install --no-cache-dir -r requirements.txt
37
-
38
- # Copy the rest of the application code
39
- COPY --chown=user . .
40
-
41
- # Set the entrypoint
42
- ENTRYPOINT ["chainlit", "run", "app.py", "--port", "7860"]