Spaces:
Sleeping
Sleeping
Download Dockerfile from ahn009/oxinto-backend: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/spaces/ahn009/oxinto-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ahn009/oxinto-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ahn009/oxinto-backend/resolve/main/Dockerfile
546 Bytes
| FROM node:20-alpine | |
| # Build tools needed for better-sqlite3 native module | |
| RUN apk add --no-cache python3 make g++ | |
| WORKDIR /app | |
| # Install dependencies first (layer cache) | |
| COPY package*.json ./ | |
| RUN npm ci --omit=dev | |
| # Copy application source | |
| COPY --chown=node:node src/ ./src/ | |
| COPY --chown=node:node package.json ./ | |
| # Create writable directories | |
| RUN mkdir -p /app/data /app/logs && chown -R node:node /app/data /app/logs | |
| USER node | |
| # HF Spaces requires port 7860 | |
| EXPOSE 7860 | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| CMD ["node", "src/app.js"] | |