flow
flow
WWasp-lang
Created by flow on 8/28/2024 in #đŸ™‹questions
Difficulty deploying via dockerfile to coolify
Thanks for checking in w/ this @Filip
11 replies
WWasp-lang
Created by flow on 8/28/2024 in #đŸ™‹questions
Difficulty deploying via dockerfile to coolify
the primary issue with build remote is it was struggling finding the prisma client during the wasp build process - so a bit different than just using the dockerfile generated via "wasp build" - either way its working now and I'm thankful for that - once I get things stabilized on my end I may go back and play around with exactly what seems to be altering the build process but if someone else runs into deployment issues & wasp finding the prisma client when building remote maybe this can help them out
11 replies
WWasp-lang
Created by flow on 8/28/2024 in #đŸ™‹questions
Difficulty deploying via dockerfile to coolify
Hey @Filip - I finally stumbled into to something that worked using a build remote approach using this bit at the top of the docker file, I havent debugged what exactly fixed it yet - but I doubt its the version specific install:
FROM node:20 AS base

FROM base AS wasp-builder
WORKDIR /wasp
ADD . .

# Install Wasp
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh
ENV PATH="/root/.local/bin:/root/.npm-global/bin:${PATH}"

RUN npm cache clean --force
RUN rm -rf node_modules
RUN npm install
RUN npm install [email protected] @prisma/[email protected]
RUN npx prisma generate
RUN wasp build
FROM node:20 AS base

FROM base AS wasp-builder
WORKDIR /wasp
ADD . .

# Install Wasp
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh
ENV PATH="/root/.local/bin:/root/.npm-global/bin:${PATH}"

RUN npm cache clean --force
RUN rm -rf node_modules
RUN npm install
RUN npm install [email protected] @prisma/[email protected]
RUN npx prisma generate
RUN wasp build
11 replies