revised readme, moved some stuff around

This commit is contained in:
2023-06-11 12:10:59 +00:00
parent 19c57ec156
commit a672409e4a
10 changed files with 610 additions and 45 deletions

20
dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Use a base image with Node.js pre-installed
FROM node:18
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY source/package.json source/package-lock.json /app/
# Install dependencies
RUN npm install --production
# Copy the rest of the application files to the working directory
COPY ./source/ /app/
# Expose the port used by the WebSocket server
EXPOSE 8080
# Run the WebSocket Driver when the container starts
CMD ["node", "index.js"]