Download Dockerfile from gpue/flyyt: direct link, hf CLI and curl.
- Browser
- Download file 761 Bytes
-
https://huggingface.co/spaces/gpue/flyyt/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gpue/flyyt/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gpue/flyyt/resolve/main/Dockerfile
761 Bytes
| # flyyt frontend, packaged standalone for a Hugging Face Docker Space: | |
| # practice-mode only (no backend/NATS reachable -> client-side local flies, | |
| # see ../README.md's Architecture section and src/useFlyLayout.ts's fallback). | |
| FROM node:22-slim AS build | |
| WORKDIR /build | |
| COPY package.json package-lock.json* ./ | |
| RUN npm install --no-audit --no-fund | |
| COPY . . | |
| RUN npm run build | |
| # nginx-unprivileged, not stock nginx: Hugging Face Spaces run containers as | |
| # uid 1000, and this image is set up to run as non-root and listen on a high | |
| # port out of the box (see https://huggingface.co/docs/hub/spaces-sdks-docker). | |
| FROM nginxinc/nginx-unprivileged:alpine | |
| COPY --from=build /build/dist /usr/share/nginx/html | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| EXPOSE 7860 | |