Spaces:
Sleeping
Sleeping
File size: 560 Bytes
a4c1c44 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # .github/workflows/ sync_to_huggingface.yml
# Dockerfile for Hugging Face Spaces (Root)
FROM node:20-slim
WORKDIR /app
# Copy the workspace files
COPY package*.json ./
COPY server/package*.json ./server/
# Install dependencies (including workspace dependencies)
RUN npm install
# Copy the rest of the code
COPY . .
# Set working directory to the server for execution
WORKDIR /app/server
# Expose port (HF Spaces uses 7860 by default)
EXPOSE 7860
ENV PORT=7860
# Start command (using tsx from the root/server context)
CMD ["npx", "tsx", "src/index.ts"]
|