snowva-backend / Dockerfile
zerito's picture
Deploy backend update Tue Jan 20 20:38:28 CET 2026
834a0d4
Raw
History Blame Contribute Delete
403 Bytes
# Use Node.js 20 Alpine as base image
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Build TypeScript code
RUN npm run build
# Expose the port Hugging Face Spaces expects
EXPOSE 7860
# Set environment variable for port
ENV PORT=7860
# Start the application
CMD ["npm", "start"]