NEWTESTD / Dockerfile
clone3's picture
Update Dockerfile
9651cde verified
raw
history blame
396 Bytes
# Use an official Node.js runtime as a parent image
FROM node:18
# Set the working directory in the container
WORKDIR /app
# Copy the package.json and package-lock.json files
COPY package*.json ./
# Install the Node.js dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the WebSocket port
EXPOSE 6060
# Start the backend server
CMD ["node", "server.js"]