Spaces:
Paused
Paused
Download Dockerfile from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/Dockerfile
336 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Use the existing node user | |
| USER node | |
| ENV HOME=/home/node \ | |
| PATH=/home/node/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=node:node dist ./dist | |
| COPY --chown=node:node package*.json ./ | |
| RUN npm install --only=production | |
| COPY --chown=node:node server.cjs ./ | |
| EXPOSE 7860 | |
| CMD ["node", "server.cjs"] | |