node-hello / Dockerfile
User-2468's picture
Update Dockerfile
95d5e96 verified
raw
history blame contribute delete
317 Bytes
# Base image
FROM node:18-slim
# Set work directory
WORKDIR /app
# Copy package.json and install dependencies
COPY package.json ./
RUN npm install --production
# Copy source code
COPY . .
# Expose port (Hugging Face expects 7860 by default, but you can use 3000)
EXPOSE 3000
# Start app
CMD ["node", "index.js"]