cragy-api / Dockerfile
ShieldX's picture
Upload 18 files
9470e9f verified
raw
history blame contribute delete
332 Bytes
# Use official Node.js image
FROM node:18-alpine
# Create app directory
WORKDIR /app
# Copy package files first (for caching)
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy source code
COPY . .
# HuggingFace expects port 7860
ENV PORT=7860
EXPOSE 7860
# Start the server
CMD ["npm", "start"]