File size: 438 Bytes
5ac74dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# Use Node.js 18 base image
FROM node:18
# Install build tools for node-pty
RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy package.json and install dependencies
COPY package.json .
RUN npm install
# Copy application files
COPY . .
# Expose port 7860
EXPOSE 7860
# Start the application
CMD ["npm", "start"] |