Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download web/Dockerfile from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/web/Dockerfile
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/web/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/web/Dockerfile
437 Bytes
| # build stage | |
| FROM node:22-alpine AS build | |
| WORKDIR /app | |
| COPY package.json pnpm-lock.yaml ./ | |
| # Install pnpm | |
| RUN npm install -g pnpm | |
| RUN pnpm install | |
| COPY . . | |
| RUN pnpm run generate | |
| # production stage | |
| FROM nginx:stable-alpine AS production | |
| COPY --from=build /app/.output/public /usr/share/nginx/html | |
| # Copy the nginx configuration file | |
| COPY ./nginx.conf /etc/nginx/conf.d/default.conf | |
| EXPOSE 3000 | |
| CMD ["nginx", "-g", "daemon off;"] | |