Sujal Bhat
commited on
Commit
·
8483bbb
1
Parent(s):
8ae9313
dockerfile
Browse files- Dockerfile +5 -13
Dockerfile
CHANGED
@@ -1,18 +1,10 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
-
|
4 |
-
USER user
|
5 |
-
ENV HOME=/home/user \
|
6 |
-
PATH=/home/user/.local/bin:$PATH
|
7 |
|
8 |
-
|
|
|
9 |
|
10 |
-
COPY
|
11 |
-
COPY --chown=user ./requirements.txt $HOME/app/requirements.txt
|
12 |
-
|
13 |
-
RUN pip install --user --upgrade pip setuptools wheel
|
14 |
-
RUN pip install --user --no-cache-dir -r requirements.txt
|
15 |
-
|
16 |
-
COPY --chown=user . .
|
17 |
|
18 |
CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
|
3 |
+
WORKDIR /app
|
|
|
|
|
|
|
4 |
|
5 |
+
COPY requirements.txt .
|
6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
8 |
+
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"]
|