From 2f94733e2a221f36f6813e77d10842d1e10ae3df Mon Sep 17 00:00:00 2001 From: Litruv Date: Sun, 11 Jun 2023 12:25:25 +0000 Subject: [PATCH] changed package locations for compatibility with npm --- dockerfile | 2 +- source/package-lock.json => package-lock.json | 0 source/package.json => package.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename source/package-lock.json => package-lock.json (100%) rename source/package.json => package.json (94%) diff --git a/dockerfile b/dockerfile index 404eace..c5f8ef3 100644 --- a/dockerfile +++ b/dockerfile @@ -5,7 +5,7 @@ FROM node:18 WORKDIR /app # 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 RUN npm install --production diff --git a/source/package-lock.json b/package-lock.json similarity index 100% rename from source/package-lock.json rename to package-lock.json diff --git a/source/package.json b/package.json similarity index 94% rename from source/package.json rename to package.json index eee1078..88ada5a 100644 --- a/source/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "websocket-driver", "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", - "main": "index.js", + "main": "source/index.js", "scripts": { "docker-build": "docker build -t websocket-driver ." },