# Use the official Node.js image | |
FROM node:18 | |
# Set the working directory | |
WORKDIR /websocket | |
# Copy package.json and package-lock.json | |
COPY package*.json ./ | |
# Install dependencies | |
RUN npm install | |
# Copy the rest of the application code | |
COPY . . | |
# Expose the WebSocket port | |
EXPOSE 7860 | |
# Command to run the application | |
CMD ["npm", "start"] |