Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -38,9 +38,15 @@ WORKDIR $HOME/app
|
|
38 |
# Clone the repository into the working directory
|
39 |
RUN git clone -b ${BRANCH} ${REPO_URL} .
|
40 |
|
41 |
-
# Set correct ownership
|
|
|
|
|
|
|
42 |
RUN chmod -R u+rwX,go+rX,go-w /home/user9/app
|
43 |
|
|
|
|
|
|
|
44 |
# Create and activate a virtual environment
|
45 |
RUN python3 -m venv venv
|
46 |
ENV PATH="$HOME/app/venv/bin:$PATH"
|
@@ -75,4 +81,4 @@ EXPOSE 7860
|
|
75 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
76 |
|
77 |
# Define the default command to run the application
|
78 |
-
CMD ["
|
|
|
38 |
# Clone the repository into the working directory
|
39 |
RUN git clone -b ${BRANCH} ${REPO_URL} .
|
40 |
|
41 |
+
# Set correct ownership for the app directory
|
42 |
+
RUN chown -R user9:user9 /home/user9/app
|
43 |
+
|
44 |
+
# Set appropriate permissions for the app directory
|
45 |
RUN chmod -R u+rwX,go+rX,go-w /home/user9/app
|
46 |
|
47 |
+
# Ensure summarize.py is readable and executable
|
48 |
+
RUN chmod 755 /home/user9/app/summarize.py
|
49 |
+
|
50 |
# Create and activate a virtual environment
|
51 |
RUN python3 -m venv venv
|
52 |
ENV PATH="$HOME/app/venv/bin:$PATH"
|
|
|
81 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
82 |
|
83 |
# Define the default command to run the application
|
84 |
+
CMD ["python3", "summarize.py", "-gui"]
|