Download Dockerfile from mxrkai/dsk: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/spaces/mxrkai/dsk/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mxrkai/dsk/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mxrkai/dsk/resolve/main/Dockerfile
288 Bytes
| FROM node:18-bullseye-slim | |
| RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
| WORKDIR /app | |
| COPY . . | |
| RUN chown -R 1000:1000 /app | |
| USER 1000 | |
| RUN npm install | |
| RUN npm run build | |
| EXPOSE 7860 | |
| ENV NODE_ENV=production | |
| ENV NODE_OPTIONS="--max-old-space-size=12882" | |
| CMD [ "npm", "start" ] | |