bradduy commited on
Commit
7b65245
·
1 Parent(s): 1059f41

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -4,12 +4,13 @@ FROM node:20
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- # Copy the package.json and package-lock.json (or yarn.lock) to install dependencies
 
8
  COPY package*.json ./
9
 
10
  # Install dependencies
11
  RUN yarn install
12
- RUN mkdir -p node_modules/.cache && chmod -R 777 node_modules/.cache
13
 
14
  # Copy the rest of the application code into the container
15
  COPY . .
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ COPY --chown=nextjs:nodejs --from=builder /app/ ./
8
+
9
  COPY package*.json ./
10
 
11
  # Install dependencies
12
  RUN yarn install
13
+
14
 
15
  # Copy the rest of the application code into the container
16
  COPY . .