fix dockerfile
This commit is contained in:
parent
2d3d5005bf
commit
a632eacb0b
2 changed files with 4 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue