mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
19 lines
321 B
Text
19 lines
321 B
Text
|
|
# Use the Node base image
|
||
|
|
FROM node:18
|
||
|
|
|
||
|
|
# Create a working directory
|
||
|
|
WORKDIR /usr/src/app
|
||
|
|
|
||
|
|
# Copy package.json and install dependencies
|
||
|
|
COPY package*.json ./
|
||
|
|
RUN npm install
|
||
|
|
|
||
|
|
# Copy all source code to the container
|
||
|
|
COPY . .
|
||
|
|
|
||
|
|
# Expose WebSocket server port
|
||
|
|
EXPOSE 4500
|
||
|
|
|
||
|
|
# Start the WebSocket server
|
||
|
|
CMD ["node", "app.js"]
|