changed package locations for compatibility with npm

This commit is contained in:
2023-06-11 12:25:25 +00:00
parent a672409e4a
commit 2f94733e2a
3 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ FROM node:18
WORKDIR /app WORKDIR /app
# Copy package.json and package-lock.json to the working directory # Copy package.json and package-lock.json to the working directory
COPY source/package.json source/package-lock.json /app/ COPY package.json package-lock.json /app/
# Install dependencies # Install dependencies
RUN npm install --production RUN npm install --production

View File

@@ -2,7 +2,7 @@
"name": "websocket-driver", "name": "websocket-driver",
"version": "1.0.0", "version": "1.0.0",
"description": "WebSocket Driver is a Node.js application that provides a WebSocket server for real-time communication. It allows clients to connect and exchange data using the WebSocket protocol", "description": "WebSocket Driver is a Node.js application that provides a WebSocket server for real-time communication. It allows clients to connect and exchange data using the WebSocket protocol",
"main": "index.js", "main": "source/index.js",
"scripts": { "scripts": {
"docker-build": "docker build -t websocket-driver ." "docker-build": "docker build -t websocket-driver ."
}, },