Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -6,10 +6,10 @@ RUN apk add --no-cache libc6-compat
|
|
6 |
|
7 |
WORKDIR /app
|
8 |
|
9 |
-
COPY package.json
|
10 |
|
11 |
-
RUN
|
12 |
-
RUN
|
13 |
|
14 |
FROM base AS builder
|
15 |
|
@@ -20,7 +20,7 @@ WORKDIR /app
|
|
20 |
COPY --from=deps /app/node_modules ./node_modules
|
21 |
COPY . .
|
22 |
|
23 |
-
RUN
|
24 |
|
25 |
FROM base AS runner
|
26 |
WORKDIR /app
|
|
|
6 |
|
7 |
WORKDIR /app
|
8 |
|
9 |
+
COPY package.json package.lock ./
|
10 |
|
11 |
+
RUN npm config set registry 'https://registry.npmmirror.com/'
|
12 |
+
RUN npm install
|
13 |
|
14 |
FROM base AS builder
|
15 |
|
|
|
20 |
COPY --from=deps /app/node_modules ./node_modules
|
21 |
COPY . .
|
22 |
|
23 |
+
RUN npm build
|
24 |
|
25 |
FROM base AS runner
|
26 |
WORKDIR /app
|