Spaces:
Paused
Paused
Download Dockerfile from magicboris/h2api: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/magicboris/h2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/magicboris/h2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/magicboris/h2api/resolve/main/Dockerfile
403 Bytes
| FROM node:20-slim | |
| # Создаем рабочую директорию | |
| WORKDIR /app | |
| # Копируем package-файлы и устанавливаем зависимости | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Копируем исходный код приложения | |
| COPY . . | |
| # Задаём порт | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Запускаем Express-сервер | |
| CMD ["npm", "start"] |