Skip to content

Image render diff: node .next/standalone/server.js" & next satrt #74727

Answered by hongdeyuan
hongdeyuan asked this question in Help
Discussion options

You must be logged in to vote

Aha, so maybe it's a sharp issue?

Sorry, it's my fault. 😬

I shouldn't have copied M1's node_madulces directly into a Docker container for use:

  TMP_DIR=vt-tmp
  NODE_IMAGE="node-alpine-git:18"
  NODE_ENV=test

    docker run \
        -d \
        --network ${NETWORK} \
        --name ${APP_TEMP_HOST} \
        -v ${TMP_DIR}:/code \
        -w /code \
        -e NODE_ENV=${NODE_ENV} \
        ${NODE_IMAGE} \
        tail -f /dev/null

    # copy all code(include: node_modules)
    docker cp $WORKSPACE/. ${APP_TEMP_HOST}:/code

    docker exec ${APP_TEMP_HOST} /bin/sh -c "rm -rf .next  && yarn build:mocking"

sharp vary in different system environments;

  • local(m1: darwin-arm )

  • docke…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@icyJoseph
Comment options

@hongdeyuan
Comment options

@icyJoseph
Comment options

@hongdeyuan
Comment options

Answer selected by hongdeyuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants