Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -117,31 +117,12 @@ The Dev Mode works well when the base image is debian-based (eg, ubuntu).
|
|
| 117 |
|
| 118 |
More exotic linux distros (eg, alpine) are not tested and the Dev Mode is not guaranteed to work on them.
|
| 119 |
|
| 120 |
-
### Example of
|
| 121 |
|
| 122 |
-
|
|
|
|
| 123 |
|
| 124 |
-
|
| 125 |
-
It then starts a NodeJS application from `/app`.
|
| 126 |
-
|
| 127 |
-
```Dockerfile
|
| 128 |
-
FROM node:19-slim
|
| 129 |
-
|
| 130 |
-
RUN apt-get update && \
|
| 131 |
-
apt-get install -y \
|
| 132 |
-
bash \
|
| 133 |
-
git git-lfs \
|
| 134 |
-
wget curl procps \
|
| 135 |
-
htop vim nano && \
|
| 136 |
-
rm -rf /var/lib/apt/lists/*
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
WORKDIR /app
|
| 140 |
-
COPY --link --chown=1000 ./ /app
|
| 141 |
-
RUN npm i
|
| 142 |
-
|
| 143 |
-
USER 1000
|
| 144 |
-
CMD ["node", "index.js"]
|
| 145 |
-
```
|
| 146 |
|
|
|
|
| 147 |
|
|
|
|
| 117 |
|
| 118 |
More exotic linux distros (eg, alpine) are not tested and the Dev Mode is not guaranteed to work on them.
|
| 119 |
|
| 120 |
+
### Example of compatible Dockerfiles
|
| 121 |
|
| 122 |
+
There are several examples of Dev Mode compatible Docker Spaces in this organization.
|
| 123 |
+
Feel free to duplicate them in your namespace!
|
| 124 |
|
| 125 |
+
Example Python app (FastAPI HTTP server): https://huggingface.co/spaces/dev-mode-explorers/dev-mode-python
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
+
Example Javascript app (Express.js HTTP server): https://huggingface.co/spaces/dev-mode-explorers/dev-mode-javascript
|
| 128 |
|