Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +10 -17
Dockerfile
CHANGED
@@ -1,18 +1,11 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
COPY requirements.txt .
|
9 |
-
RUN pip install
|
10 |
-
|
11 |
-
# Copy source
|
12 |
COPY . .
|
13 |
-
|
14 |
-
# Expose Chainlit port
|
15 |
-
EXPOSE 7860
|
16 |
-
|
17 |
-
# Launch Chainlit app
|
18 |
-
CMD ["chainlit", "run", "app.py"]
|
|
|
1 |
+
FROM python:3.11
|
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 -r requirements.txt
|
|
|
|
|
10 |
COPY . .
|
11 |
+
CMD ["chainlit", "run", "app.py", "--port", "7860", "-h"]
|
|
|
|
|
|
|
|
|
|