Trying to install wasp within a docker image, and it always fail
I am trying to install wasp within a docker image (to subsequently build the client app). But
wasp version
wasp version
command keeps failing.
Here is my dockerfile for reference. Can someone help me spot my mistake
FROM node:22.6.0-slim AS buildRUN apt-get update -yRUN DEBIAN_FRONTEND=noninteractive apt-get install npm curl bash -yRUN node -v# install waspRUN curl -sSL https://get.wasp-lang.dev/installer.sh | shENV PATH="$PATH:/root/.local/bin"# Set working directoryWORKDIR /appCOPY . /appRUN wasp version# Same as npm installRUN REACT_APP_API_URL=http://localhost:3001 npm run build
FROM node:22.6.0-slim AS buildRUN apt-get update -yRUN DEBIAN_FRONTEND=noninteractive apt-get install npm curl bash -yRUN node -v# install waspRUN curl -sSL https://get.wasp-lang.dev/installer.sh | shENV PATH="$PATH:/root/.local/bin"# Set working directoryWORKDIR /appCOPY . /appRUN wasp version# Same as npm installRUN REACT_APP_API_URL=http://localhost:3001 npm run build
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.