XciD HF Staff commited on
Commit
6f23e0f
·
1 Parent(s): 2410456

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -9,7 +9,7 @@ USER 1000
9
  WORKDIR /usr/src/app
10
 
11
  # Copy package.json and package-lock.json to the container
12
- COPY package.json package-lock.json ./
13
 
14
  # Install dependencies
15
  RUN npm install
@@ -17,7 +17,7 @@ RUN npm install
17
  VOLUME /data
18
 
19
  # Copy the rest of the application files to the container
20
- COPY . .
21
 
22
  # Build the Next.js application for production
23
  RUN npm run build
 
9
  WORKDIR /usr/src/app
10
 
11
  # Copy package.json and package-lock.json to the container
12
+ COPY --chown=1000 package.json package-lock.json ./
13
 
14
  # Install dependencies
15
  RUN npm install
 
17
  VOLUME /data
18
 
19
  # Copy the rest of the application files to the container
20
+ COPY --chown=1000 . .
21
 
22
  # Build the Next.js application for production
23
  RUN npm run build