This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
node_modules
|
||||||
|
.next
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
*.md
|
||||||
|
.vscode
|
||||||
|
.cursor
|
||||||
|
.github
|
||||||
|
coverage
|
||||||
|
npm-debug.log
|
||||||
|
.dockerignore
|
||||||
|
Dockerfile*
|
||||||
+3
-2
@@ -17,13 +17,14 @@ WORKDIR /app
|
|||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
# RUN apk add --no-cache libc6-compat git
|
# RUN apk add --no-cache libc6-compat git
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --legacy-peer-deps --ignore-scripts --loglevel info
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
|
npm ci --legacy-peer-deps --ignore-scripts --loglevel info
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build && npm ci --omit=dev --legacy-peer-deps --ignore-scripts --loglevel info
|
RUN npm run build
|
||||||
|
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user