Spaces:
Running
Running
bradduy
commited on
Commit
·
7b65245
1
Parent(s):
1059f41
update dockerfile
Browse files- 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 |
-
|
|
|
8 |
COPY package*.json ./
|
9 |
|
10 |
# Install dependencies
|
11 |
RUN yarn install
|
12 |
-
|
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 . .
|