Spaces:
Sleeping
Sleeping
Download Dockerfile from fullpwerr/temp-cloud: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/fullpwerr/temp-cloud/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fullpwerr/temp-cloud/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fullpwerr/temp-cloud/resolve/main/Dockerfile
518 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 -R 777 /app/files | |
| RUN touch /app/list.json && chmod 666 /app/list.json | |
| # Expose port API | |
| EXPOSE 7860 | |
| # Start aplikasi | |
| CMD ["npm", "start"] | |