Spaces:
Paused
Paused
Download Dockerfile from TomatitoToho/mx-proxy: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/TomatitoToho/mx-proxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TomatitoToho/mx-proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TomatitoToho/mx-proxy/resolve/main/Dockerfile
394 Bytes
| FROM node:20-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl wget ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY package.json ./ | |
| RUN npm install --production | |
| COPY . . | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=60s --timeout=10s --retries=3 \ | |
| CMD curl -f http://localhost:7860/health || exit 1 | |
| CMD ["node", "server.mjs"] | |