diff --git a/backend/Dockerfile b/backend/Dockerfile index eda3afd..4a396b1 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,15 +1,8 @@ -FROM node:16-alpine +FROM node:22-alpine WORKDIR /app -# Copy package.json and package-lock.json -COPY package*.json ./ - -# Install dependencies -RUN npm install - -# Copy the rest of the application -COPY . . +USER root # Expose port 5000 EXPOSE 5000 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 73ec4cb..1241095 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,15 +1,8 @@ -FROM node:16-alpine +FROM node:22-alpine WORKDIR /app -# Copy package.json and package-lock.json -COPY package*.json ./ - -# Install dependencies -RUN npm install - -# Copy the rest of the application -COPY . . +USER root # Expose port 8012 EXPOSE 8012