Spaces:
Running
Running
Download Dockerfile from Aichatbot12321/Transaltor: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/Aichatbot12321/Transaltor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Aichatbot12321/Transaltor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Aichatbot12321/Transaltor/resolve/main/Dockerfile
490 Bytes
| # Upgrade the base image to Node.js v22 for native WebSocket support | |
| FROM node:22 | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| # Force Playwright to install browsers directly into the local app folder | |
| ENV PLAYWRIGHT_BROWSERS_PATH=0 | |
| RUN npm install | |
| # Install Playwright browsers and Linux dependencies into the path set above | |
| RUN npx playwright install --with-deps chromium | |
| # Copy over all your upgraded HTML assets and your server engine script | |
| COPY . . | |
| EXPOSE 10000 | |
| CMD ["node", "server.js"] |