Spaces:
Sleeping
Sleeping
Download Dockerfile from fullpwerr/temp-cloud: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/fullpwerr/temp-cloud/resolve/d79d76fa6744cf4e8e5d71cbdb4cca6b3fd41b21/Dockerfile
- Command line
-
hf download hf://spaces/fullpwerr/temp-cloud@d79d76fa6744cf4e8e5d71cbdb4cca6b3fd41b21/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fullpwerr/temp-cloud/resolve/d79d76fa6744cf4e8e5d71cbdb4cca6b3fd41b21/Dockerfile
462 Bytes
| FROM node:18-bullseye | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json & install dependencies | |
| COPY package*.json ./ | |
| RUN npm install --omit=dev | |
| # Install ffmpeg (kalau masih butuh) | |
| RUN apt update && apt install -y ffmpeg && rm -rf /var/lib/apt/lists/* | |
| # Copy semua file | |
| COPY . . | |
| # Buat folder "files" & atur permission dengan benar | |
| RUN mkdir -p /app/files && chmod 777 /app/files | |
| # Expose port API | |
| EXPOSE 7860 | |
| # Start aplikasi | |
| CMD ["npm", "start"] | |