Download Dockerfile from seonglae/AgentStateGraph-Browser: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/seonglae/AgentStateGraph-Browser/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/seonglae/AgentStateGraph-Browser/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/seonglae/AgentStateGraph-Browser/resolve/main/Dockerfile
421 Bytes
| FROM node:20-slim AS build | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y git git-lfs && git lfs install && apt-get clean | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| ENV ASG_BASE=/ | |
| RUN npm run build | |
| FROM nginx:alpine | |
| RUN mkdir -p /var/cache/nginx /tmp && chmod -R 777 /var/cache/nginx /tmp | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| COPY --from=build /app/dist /app/dist | |
| EXPOSE 7860 | |
| CMD ["nginx","-g","daemon off;"] | |