Spaces:
Sleeping
Sleeping
File size: 390 Bytes
ac25f89 | 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 | FROM node:20-slim
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build if necessary (not needed for tsx but good practice)
# RUN npm run build
# Expose port (HF Spaces uses 7860 by default)
EXPOSE 7860
# Set environment variable for port
ENV PORT=7860
# Start command
CMD ["npx", "tsx", "src/index.ts"]
|