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
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