mirror of
https://github.com/litruv/API-WebSocket-Bridge.git
synced 2026-07-24 02:36:03 +10:00
revised readme, moved some stuff around
This commit is contained in:
20
dockerfile
Normal file
20
dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user