Download Dockerfile from devin15/site-map: direct link, hf CLI and curl.
- Browser
- Download file 889 Bytes
-
https://huggingface.co/spaces/devin15/site-map/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/devin15/site-map/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/devin15/site-map/resolve/main/Dockerfile
889 Bytes
| # FROM alpine AS builder | |
| # RUN apk add --no-cache nodejs npm git | |
| # RUN npm install npm -g | |
| # RUN adduser -D app | |
| # USER app | |
| # WORKDIR /home/app | |
| # RUN git clone https://github.com/louislam/uptime-kuma.git | |
| # WORKDIR /home/app/uptime-kuma | |
| # RUN npm run setup | |
| # EXPOSE 3001 | |
| # CMD ["node", "server/server.js"] | |
| FROM alpine AS builder | |
| RUN apk add --no-cache nodejs npm git curl jq python3 python3-dev py3-pip | |
| RUN adduser -D app | |
| USER app | |
| WORKDIR /home/app | |
| RUN git clone https://github.com/louislam/uptime-kuma.git | |
| WORKDIR /home/app/uptime-kuma | |
| RUN npm run setup | |
| ENV VIRTUAL_ENV=/home/app/venv | |
| RUN python3 -m venv $VIRTUAL_ENV | |
| ENV PATH="$VIRTUAL_ENV/bin:$PATH" | |
| RUN pip install --no-cache-dir huggingface_hub | |
| COPY --chown=app:app sync_data.sh /home/app/uptime-kuma/ | |
| RUN chmod +x /home/app/uptime-kuma/sync_data.sh | |
| EXPOSE 3001 | |
| CMD ["/bin/sh", "-c", "./sync_data.sh & node server/server.js"] |