Download Dockerfile from gdshli/drop: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/spaces/gdshli/drop/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/gdshli/drop/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/gdshli/drop/resolve/main/Dockerfile
441 Bytes
| FROM alpine:latest | |
| WORKDIR /home/node/app | |
| COPY package*.json ./ | |
| RUN apk add --no-cache nodejs npm | |
| RUN NODE_ENV="production" npm ci --omit=dev | |
| # Directories and files excluded via .dockerignore | |
| COPY . . | |
| # environment settings | |
| ENV NODE_ENV="production" | |
| EXPOSE 3000 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ | |
| CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1 | |
| ENTRYPOINT ["npm", "start"] |