chore: upgrade Node.js base image to v22-alpine and add node_modules volume mount

This commit is contained in:
knight 2025-05-17 15:58:06 -04:00
parent d2b88f4e59
commit 340bbd22b9
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# Use an official Node.js runtime as a parent image # Use an official Node.js runtime as a parent image
FROM node:14 FROM node:22-alpine
# Set the working directory in the container # Set the working directory in the container
WORKDIR /usr/src/app WORKDIR /usr/src/app

View File

@ -17,5 +17,6 @@ services:
volumes: volumes:
- .:/usr/src/app - .:/usr/src/app
- ./data:/usr/src/app/data - ./data:/usr/src/app/data
- /usr/src/app/node_modules