Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
FROM python:3.9
|
2 |
RUN useradd -m -u 1000 user
|
3 |
-
USER root # Switch to root to change permissions
|
4 |
WORKDIR /home/user/app
|
5 |
COPY --chown=user . /home/user/app
|
6 |
COPY ./requirements.txt /home/user/app/requirements.txt
|
|
|
|
|
|
|
7 |
RUN pip install -r /home/user/app/requirements.txt
|
8 |
-
|
9 |
-
USER user # Switch back to user for running the app
|
10 |
-
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
1 |
FROM python:3.9
|
2 |
RUN useradd -m -u 1000 user
|
|
|
3 |
WORKDIR /home/user/app
|
4 |
COPY --chown=user . /home/user/app
|
5 |
COPY ./requirements.txt /home/user/app/requirements.txt
|
6 |
+
USER root
|
7 |
+
RUN chmod -R 777 /home/user/app/.chainlit
|
8 |
+
USER 1000
|
9 |
RUN pip install -r /home/user/app/requirements.txt
|
10 |
+
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
|