XciD HF Staff commited on
Commit
f2c4e8a
·
verified ·
1 Parent(s): 14dcc50

Update Dockerfile (#446)

Browse files

- Update Dockerfile (6a45d74794f47d4b557703495e2cd88b35f8332f)

Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
- FROM node:20-alpine
2
- USER root
3
 
4
  USER 1000
5
  WORKDIR /usr/src/app
6
- # Copy package.json and package-lock.json to the container
7
- COPY --chown=1000 package.json package-lock.json ./
8
 
9
  # Copy the rest of the application files to the container
10
  COPY --chown=1000 . .
11
 
12
- RUN npm install
13
- RUN npm run build
14
 
15
  # Expose the application port (assuming your app runs on port 3000)
16
  EXPOSE 3000
 
1
+ FROM node:22
 
2
 
3
  USER 1000
4
  WORKDIR /usr/src/app
 
 
5
 
6
  # Copy the rest of the application files to the container
7
  COPY --chown=1000 . .
8
 
9
+ RUN npm install && npm run build
 
10
 
11
  # Expose the application port (assuming your app runs on port 3000)
12
  EXPOSE 3000