You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=> ERROR [pwa builder 4/4] RUN PNPM install --frozen-lockfile --offline --prod && pnpm run build 4.9s
------
> [pwa builder 4/4] RUN PNPM install --frozen-lockfile --offline --prod && pnpm run build:
3.272 ? The modules directory at "/srv/app/node_modules" will be removed and reinstalled from scratch. Proceed? (Y/n) ‣ true
4.190 > nuxt-app@ build /srv/app
4.190 > nuxt build
4.190
4.196 sh: 1: nuxt: not found
4.199 ELIFECYCLE Command failed.
------
failed to solve: process "/bin/sh -c pnpm install --frozen-lockfile --offline --prod && \tpnpm run build" did not complete successfully: exit code: 1
Here is my pwa/Dockerfile:
#syntax=docker/dockerfile:1.4
# Versions
FROM node:lts AS node_upstream
# Base stage for dev and build
FROM node_upstream AS base
WORKDIR /srv/app
RUN corepack enable && \
corepack prepare --activate pnpm@latest && \
pnpm config -g set store-dir /.pnpm-store
# Development image
FROM base as dev
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME localhost
CMD ["sh", "-c", "pnpm install; pnpm dev"]
FROM base AS builder
COPY --link pnpm-lock.yaml ./
RUN pnpm fetch --prod
COPY --link . .
RUN pnpm install --frozen-lockfile --offline --prod && \
pnpm run build
# Production image, copy all the files and run nuxt
FROM node_upstream AS prod
WORKDIR /srv/app
ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs; \
adduser --system --uid 1001 nuxt
COPY --from=builder --link /srv/app/public ./public
USER nuxt
EXPOSE 3000
ENV PORT 3000
ENV HOSTNAME localhost
CMD ["node", "server.js"]
I use API Platform 3.2.
I'm deploying my API Platform application with Nuxt, and when I run the command:
I have the following error:
Here is my pwa/Dockerfile:
And my compose.prod.yaml:
Thank you.
The text was updated successfully, but these errors were encountered: