Download src/frontend/Dockerfile from opendigital/agent-flow: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/opendigital/agent-flow/resolve/main/src/frontend/Dockerfile
- Command line
-
hf download hf://opendigital/agent-flow/src/frontend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/opendigital/agent-flow/resolve/main/src/frontend/Dockerfile
514 Bytes
| FROM node:20-alpine as frontend_build | |
| ARG BACKEND_URL | |
| WORKDIR /app | |
| COPY ./package.json ./package-lock.json ./tsconfig.json ./vite.config.ts ./index.html ./tailwind.config.js ./postcss.config.js ./prettier.config.js /app/ | |
| RUN npm install | |
| COPY ./src /app/src | |
| RUN npm run build | |
| FROM nginx | |
| COPY --from=frontend_build /app/build/ /usr/share/nginx/html | |
| COPY /nginx.conf /etc/nginx/conf.d/default.conf | |
| COPY start-nginx.sh /start-nginx.sh | |
| RUN chmod +x /start-nginx.sh | |
| ENV BACKEND_URL=$BACKEND_URL | |
| CMD ["/start-nginx.sh"] |