Commit
·
c69dd08
1
Parent(s):
92576ae
permissions issue
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
-
RUN chown -R user:user /home/user/app/data
|
| 4 |
USER user
|
| 5 |
ENV HOME=/home/user \
|
| 6 |
PATH=/home/user/.local/bin:$PATH
|
| 7 |
WORKDIR $HOME/app
|
| 8 |
COPY --chown=user . $HOME/app
|
| 9 |
COPY ./requirements.txt ~/app/requirements.txt
|
|
|
|
| 10 |
RUN pip install -r requirements.txt
|
| 11 |
COPY . .
|
| 12 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
|
| 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 mkdir -p $HOME/app/data/vectorstore
|
| 10 |
RUN pip install -r requirements.txt
|
| 11 |
COPY . .
|
| 12 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|