Spaces:
Sleeping
Sleeping
Download Dockerfile from simoncck/web_surf_API: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/simoncck/web_surf_API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/simoncck/web_surf_API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/simoncck/web_surf_API/resolve/main/Dockerfile
370 Bytes
| FROM mcr.microsoft.com/playwright:v1.53.0-jammy | |
| WORKDIR /app | |
| COPY package.json ./ | |
| RUN npm install --omit=dev | |
| COPY entry.sh /entry.sh | |
| RUN chmod +x /entry.sh | |
| # OPTIONAL: delete USER pwuser line; stay root | |
| ENTRYPOINT ["/entry.sh"] | |
| COPY server.js login.js ./ | |
| ENV STATE_DIR=/data | |
| RUN mkdir -p $STATE_DIR/log | |
| USER 0 | |
| ENV PORT=$PORT | |
| EXPOSE $PORT | |
| ENTRYPOINT ["npm","start"] |