Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -67,9 +67,12 @@ RUN .venv/bin/pip3 install -r /web-ui/requirements.txt \
|
|
| 67 |
&& .venv/bin/playwright install --with-deps chromium
|
| 68 |
|
| 69 |
RUN chmod -R 777 /web-ui/*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
# Expose the default port for the web application.
|
| 71 |
EXPOSE 7860
|
| 72 |
-
|
| 73 |
# Command to run the application when the container starts.
|
| 74 |
# We bind to 0.0.0.0 to make the web UI accessible from outside the container.
|
| 75 |
CMD [".venv/bin/python", "webui.py", "--ip", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 67 |
&& .venv/bin/playwright install --with-deps chromium
|
| 68 |
|
| 69 |
RUN chmod -R 777 /web-ui/*
|
| 70 |
+
RUN chmod +x /web-ui/.venv/bin/python
|
| 71 |
+
|
| 72 |
+
# (Optional) run as root to avoid permission issues
|
| 73 |
+
USER root
|
| 74 |
# Expose the default port for the web application.
|
| 75 |
EXPOSE 7860
|
|
|
|
| 76 |
# Command to run the application when the container starts.
|
| 77 |
# We bind to 0.0.0.0 to make the web UI accessible from outside the container.
|
| 78 |
CMD [".venv/bin/python", "webui.py", "--ip", "0.0.0.0", "--port", "7860"]
|