heyday1234 commited on
Commit
2423159
·
verified ·
1 Parent(s): 639c48d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -23
Dockerfile CHANGED
@@ -1,23 +1,19 @@
1
- # Use the official python 3.9 image
2
- FROM python:3.10-slim-bullseye
3
-
4
- # Set the working directory to corrent folder
5
- WORKDIR .
6
-
7
- RUN useradd -m -u 1000 user
8
- USER user
9
- ENV PATH="/home/user/.local/bin:$PATH"
10
-
11
- # Copy the requirements to working directory
12
- COPY --chown=user ./requirements.txt requirements.txt
13
-
14
- # Install all packages in requirements.txt
15
- RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
16
-
17
- WORKDIR app/
18
- COPY --chown=user . /app
19
-
20
- EXPOSE 7860
21
-
22
- CMD ["python", "-m", "chainlit", "run", "model.py", "-h", "--port", "7860", "--host", "0.0.0.0"]
23
-
 
1
+ # Use the official python 3.9 image
2
+ FROM python:3.10-slim-bullseye
3
+
4
+ # Set the working directory to corrent folder
5
+ WORKDIR .
6
+
7
+ # Copy the requirements to working directory
8
+ COPY ./requirements.txt requirements.txt
9
+
10
+ # Install all packages in requirements.txt
11
+ RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
12
+
13
+ WORKDIR app/
14
+ COPY . /app
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD ["python", "-m", "chainlit", "run", "model.py", "-h", "--port", "7860"]
19
+