ws / Dockerfile
1tbfree's picture
Create Dockerfile
b8a159b verified
raw
history blame contribute delete
344 Bytes
# 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"]