Spaces:
Paused
Paused
Dobin Yim
commited on
Commit
·
d9f3f82
1
Parent(s):
9c3e38c
Downgrade chainlit to 0.7.700
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -14,10 +14,10 @@ WORKDIR $HOME/app
|
|
14 |
# Copy the application code and set ownership
|
15 |
COPY --chown=user . $HOME/app
|
16 |
|
17 |
-
# Ensure the necessary
|
18 |
-
RUN mkdir -p ${CHAINLIT_USER_FILES_DIR} && \
|
19 |
-
chown -R user:user ${CHAINLIT_USER_FILES_DIR} && \
|
20 |
-
chmod 777 ${CHAINLIT_USER_FILES_DIR}
|
21 |
|
22 |
# Switch to the user
|
23 |
USER user
|
@@ -25,7 +25,7 @@ USER user
|
|
25 |
# Install dependencies
|
26 |
COPY --chown=user requirements.txt requirements.txt
|
27 |
RUN pip install --no-cache-dir -r requirements.txt
|
28 |
-
RUN pip install
|
29 |
|
30 |
# Copy the rest of the application code
|
31 |
COPY --chown=user . .
|
|
|
14 |
# Copy the application code and set ownership
|
15 |
COPY --chown=user . $HOME/app
|
16 |
|
17 |
+
# Ensure the necessary directories exist and have the correct permissions
|
18 |
+
RUN mkdir -p ${CHAINLIT_USER_FILES_DIR} $HOME/app/.files && \
|
19 |
+
chown -R user:user ${CHAINLIT_USER_FILES_DIR} $HOME/app/.files && \
|
20 |
+
chmod 777 ${CHAINLIT_USER_FILES_DIR} $HOME/app/.files
|
21 |
|
22 |
# Switch to the user
|
23 |
USER user
|
|
|
25 |
# Install dependencies
|
26 |
COPY --chown=user requirements.txt requirements.txt
|
27 |
RUN pip install --no-cache-dir -r requirements.txt
|
28 |
+
RUN pip install chainlit==0.7.700
|
29 |
|
30 |
# Copy the rest of the application code
|
31 |
COPY --chown=user . .
|