WaspW
Wasp17mo ago
abhinav3295

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 command keeps failing.

Here is my dockerfile for reference. Can someone help me spot my mistake
FROM node:22.6.0-slim AS build

RUN apt-get update -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install npm curl bash -y
RUN node -v

# install wasp
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh
ENV PATH="$PATH:/root/.local/bin"

# Set working directory
WORKDIR /app
 
COPY . /app

RUN wasp version

# Same as npm install
RUN REACT_APP_API_URL=http://localhost:3001 npm run build
Was this page helpful?