Spaces:
Sleeping
Sleeping
Download Dockerfile from edyxapi/canvas2code: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/edyxapi/canvas2code/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/edyxapi/canvas2code/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/edyxapi/canvas2code/resolve/main/Dockerfile
537 Bytes
| # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # you will also find guides on how best to write your Dockerfile | |
| FROM node:18-alpine | |
| # The node image already has a user named 'node' with UID 1000. We just need to switch to it. | |
| USER node | |
| ENV PATH="/home/node/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copy package files first for better caching | |
| COPY --chown=node package*.json ./ | |
| RUN npm install | |
| # Copy all files | |
| COPY --chown=node . . | |
| # Hugging Face Spaces expose port 7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] | |