mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Co-authored-by: roesnerb <roesnerb@users.noreply.github.com> Co-authored-by: MathieuSevignyLavallee <MathieuSevignyLavallee@users.noreply.github.com>
18 lines
321 B
Docker
18 lines
321 B
Docker
# 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"]
|