wallets-api / Dockerfile
z1amez's picture
2.2
a4c1c44
raw
history blame contribute delete
560 Bytes
# .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"]