New Filestructure for Docker

This commit is contained in:
2026-07-31 23:53:14 +02:00
parent 1e10ed4de8
commit 5bcf2a3546
239 changed files with 710 additions and 2000 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM node:20-alpine
WORKDIR /var/www/wkvs/websocket
# Install pm2 globally
RUN npm install -g pm2
# Copy package files from the websocket folder
COPY websocket/package*.json ./
# Install dependencies strictly following lockfile
RUN npm ci
# Copy the rest of the application source code from websocket folder
COPY websocket/ ./
# Change ownership to the non-root node user for security
RUN chown -R node:node /var/www/wkvs/websocket
USER node
EXPOSE 3000
CMD ["pm2-runtime", "start", "index.js"]