Download Dockerfile from FormaLau/microduck-reachy-simulator: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/FormaLau/microduck-reachy-simulator/resolve/432303e147df37294717ea23c242be5e7c1b6719/Dockerfile
- Command line
-
hf download hf://spaces/FormaLau/microduck-reachy-simulator@432303e147df37294717ea23c242be5e7c1b6719/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FormaLau/microduck-reachy-simulator/resolve/432303e147df37294717ea23c242be5e7c1b6719/Dockerfile
482 Bytes
| # Build the Vite app, then serve the static bundle with nginx. | |
| # HF Spaces docker SDK: the container must listen on app_port (8080); | |
| # nginx-unprivileged listens on 8080 by default and runs as non-root, | |
| # which is exactly what Spaces expects. | |
| FROM node:22-alpine AS build | |
| WORKDIR /build | |
| COPY app/package.json app/package-lock.json ./ | |
| RUN npm ci | |
| COPY app/ ./ | |
| RUN npm run build | |
| FROM nginxinc/nginx-unprivileged:alpine | |
| COPY --from=build /build/dist /usr/share/nginx/html | |
| EXPOSE 8080 | |