sbrandeis HF staff commited on
Commit
47632a0
1 Parent(s): 8f4faec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -24
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 a compatible Dockerfile
121
 
122
- This is an example of a Dockerfile compatible with Spaces Dev Mode.
 
123
 
124
- It installs the required packages with `apt-get`, along with a couple more for developer convenience (namely: `top`, `vim` and `nano`).
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