s2w / Dockerfile
dvc890's picture
Upload 11 files
3c8ff75 verified
raw
history blame contribute delete
345 Bytes
# Use Node.js LTS
FROM node:18-bullseye-slim
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Expose port (Hugging Face defaut is 7860)
EXPOSE 7860
# Define environment variables
ENV PORT=7860
# Start the application
CMD ["npm", "start"]