Download Dockerfile from v-1-file/2: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/v-1-file/2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/v-1-file/2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/v-1-file/2/resolve/main/Dockerfile
428 Bytes
| FROM node:18-bullseye-slim | |
| # Tentukan direktori kerja di dalam container | |
| WORKDIR /app | |
| # Salin file package.json dan package-lock.json terlebih dahulu | |
| COPY package*.json ./ | |
| # Install dependensi Node.js | |
| RUN npm install | |
| # Salin seluruh kode aplikasi ke dalam container | |
| COPY . . | |
| # Ekspose port 3000 yang akan digunakan aplikasi Express | |
| EXPOSE 3000 | |
| # Tentukan perintah untuk menjalankan aplikasi Express.js | |
| CMD ["npm", "start"] |