Fix static assets dir
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias 2024-06-16 20:49:02 +02:00
parent 0a9255122a
commit 80fdf4332f

View File

@ -8,7 +8,7 @@ RUN corepack enable
WORKDIR /builder WORKDIR /builder
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile
ENV NODE_ENV=production ENV NODE_ENV=production
@ -28,8 +28,8 @@ RUN corepack enable
COPY --from=builder /builder/package.json ./ COPY --from=builder /builder/package.json ./
#COPY --from=builder /builder/node_modules ./node_modules #COPY --from=builder /builder/node_modules ./node_modules
COPY --from=builder /builder/.next/standalone ./.next/standalone/ COPY --from=builder /builder/.next/standalone ./.next/standalone/
COPY --from=builder /builder/.next/static ./.next/static COPY --from=builder /builder/.next/static ./.next/standalone/.next/static
COPY --from=builder /builder/public ./public COPY --from=builder /builder/public ./.next/standalone/.next/public
COPY --from=builder /builder/next.config.mjs ./ COPY --from=builder /builder/next.config.mjs ./
FROM runner as server FROM runner as server