Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork871
Open
Description
i tried to install webpack and npm, but i can't seem to install them. i always get the error
npm: not found
this is my Dockerfile
ARG NODE_VERSION=20FROM node:${NODE_VERSION}-alpine AS symfony_assets_builderWORKDIR /srv/appRUN mkdir publicCOPY package.json ./RUN yarn installCOPY assets assets/COPY webpack.config.js ./RUN yarn buildFROM dunglas/frankenphp:latest-alpine AS frankenphp_upstreamFROM composer/composer:2-bin AS composer_upstreamFROM frankenphp_upstream AS frankenphp_baseWORKDIR /appRUN apk add --no-cache \acl \file \gettext \git \;RUN set -eux; \install-php-extensions \apcu \intl \opcache \zip \;RUN install-php-extensions pdo_pgsqlRUN docker-php-ext-install pdo_mysqlCOPY --link frankenphp/conf.d/app.ini $PHP_INI_DIR/conf.d/COPY --link --chmod=755 frankenphp/docker-entrypoint.sh /usr/local/bin/docker-entrypointCOPY --link frankenphp/Caddyfile /etc/caddy/CaddyfileENTRYPOINT ["docker-entrypoint"]ENV COMPOSER_ALLOW_SUPERUSER=1ENV PATH="${PATH}:/root/.composer/vendor/bin"COPY --from=composer_upstream --link /composer /usr/bin/composerHEALTHCHECK --start-period=60s CMD curl -f http://localhost:2019/metrics || exit 1CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ]FROM frankenphp_base AS frankenphp_devENV APP_ENV=dev XDEBUG_MODE=offVOLUME /app/var/RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"RUN set -eux; \install-php-extensions \xdebug \;COPY --from=symfony_assets_builder /srv/app/public/build public/buildCOPY --link frankenphp/conf.d/app.dev.ini $PHP_INI_DIR/conf.d/CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile", "--watch" ]FROM frankenphp_base AS frankenphp_prodENV APP_ENV=prodENV FRANKENPHP_CONFIG="import worker.Caddyfile"RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"COPY --link frankenphp/conf.d/app.prod.ini $PHP_INI_DIR/conf.d/COPY --link frankenphp/worker.Caddyfile /etc/caddy/worker.CaddyfileCOPY --link composer.* symfony.* ./RUN set -eux; \composer install --no-cache --prefer-dist --no-dev --no-autoloader --no-scripts --no-progressCOPY --link . ./RUN rm -Rf frankenphp/RUN set -eux; \mkdir -p var/cache var/log; \composer dump-autoload --classmap-authoritative --no-dev; \composer dump-env prod; \composer run-script --no-dev post-install-cmd; \chmod +x bin/console; sync;