Spaces:
Sleeping
Sleeping
Raymond Weitekamp
commited on
Commit
·
864df04
1
Parent(s):
09d544d
Fix .ocpvscode setup - create as file instead of directory
Browse files- Dockerfile +3 -2
- README.md +1 -1
Dockerfile
CHANGED
|
@@ -27,9 +27,10 @@ ENV OCP_VSCODE_LOCK_DIR=/tmp/ocpvscode
|
|
| 27 |
|
| 28 |
# Create a non-root user and set up home directory
|
| 29 |
RUN useradd -m -d /home/appuser -s /bin/bash appuser && \
|
| 30 |
-
|
|
|
|
| 31 |
chown -R appuser:appuser /home/appuser && \
|
| 32 |
-
chmod
|
| 33 |
|
| 34 |
# Install uv and create virtual environment
|
| 35 |
RUN pip install uv && \
|
|
|
|
| 27 |
|
| 28 |
# Create a non-root user and set up home directory
|
| 29 |
RUN useradd -m -d /home/appuser -s /bin/bash appuser && \
|
| 30 |
+
touch /home/appuser/.ocpvscode && \
|
| 31 |
+
echo "{}" > /home/appuser/.ocpvscode && \
|
| 32 |
chown -R appuser:appuser /home/appuser && \
|
| 33 |
+
chmod 666 /home/appuser/.ocpvscode
|
| 34 |
|
| 35 |
# Install uv and create virtual environment
|
| 36 |
RUN pip install uv && \
|
README.md
CHANGED
|
@@ -14,7 +14,7 @@ A nicegui-based CAD customizer, editor, and viewer for OCP-based projects like b
|
|
| 14 |
* Also thanks to the [nicegui](https://github.com/zauberzeug/nicegui) project
|
| 15 |
|
| 16 |
After installing the dependencies, just run the file like:
|
| 17 |
-
```
|
| 18 |
python cadviewer.py
|
| 19 |
```
|
| 20 |
|
|
|
|
| 14 |
* Also thanks to the [nicegui](https://github.com/zauberzeug/nicegui) project
|
| 15 |
|
| 16 |
After installing the dependencies, just run the file like:
|
| 17 |
+
```python
|
| 18 |
python cadviewer.py
|
| 19 |
```
|
| 20 |
|