generate_token / Dockerfile
Midnightar's picture
Create Dockerfile
8f6257d verified
raw
history blame
305 Bytes
# Use Node.js 18 LTS
FROM node:18
# Set working directory
WORKDIR /app
# Copy package.json and install dependencies
COPY package*.json ./
RUN npm install --only=production
# Copy all project files
COPY . .
# Expose port (Hugging Face default)
EXPOSE 7860
# Start the Node.js app
CMD ["npm", "start"]