Dockerfile in Tubrorepo

Hi I have a Turborepo where I have a nextjs frontend “web” and an express backend “api” both connected through trpc (guess that’s obv). I’m kinda finding it difficult to create a docker image for this 🫠 has anybody else done this before? Any example I could take a look at? Thanks!
Nick342d ago
If you can find a guide for hosting express in docker then it will also work for this If you have any specific issues though, we might be able to help
anan7342d ago
I'm actually failing to dockerise my nextjs app. forgot to mention that.
bazeso341d ago
Can you show us your Dockerfiles ?
anan7341d ago
FROM node:16-alpine RUN apk add --no-cache libc6-compat WORKDIR /app COPY . . ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED 1 RUN npm ci RUN npm run -w api dbgen RUN npm run -w web build EXPOSE 3000 CMD ["npm", "start", "-w", "web"] I've noticed my build fails when I use yarn and I want to use npm but in the build section, it says no lock file found and begins to use yarn. when I run that build command locally it builds perfectly.
More Posts
Querying external api in trpc router not workingHi guys! So I'm trying to query an api endpoint that I created through a separate node server inside[HOW TO?] Call trpc endpoints from vanilla nextJs api routesSpinoff from an og thread here: for setting up tRPC with Next13 app dir?Anyone has a goos tutorial (blogpost / YouTube) on setting up tRPC with Next13 app dir for both clieStack trace in Client?I've just found that in production I can see stack trace for TRPCErrors. Isin't it supposed to not sSequential batch mutationHow one would make a mutation as a sequential mutation batch call? Say I have to add 10 apples to thHave middleware require a "base" inputIs there a way to have middleware add a minimum required input, like an org id? So that every procedIs it possible to dynamically change the url of httpBatchLink in runtime?I need to do it because I have 2 domians that share the same NextJS project and I need to be able togetting manually a subdomainFor some reason I can fetch here the route /test, but not /tester/eAbility to perform a tRPC request form a terminal, curl-likeHey, I wanted to ask if there is conventional a way to do that? I wanted to warmup my lambda but canUsage of useQuery after pageload?Hi all! I am new to TRPC so my apologies in advance for a very nooby question: In my [id].tsx file ISecurity question about tRCPIf I export the tRCP router as type in order to import that type in my client JS, wouldn't it mean tReal-world Large Application Examples?Are there any OSS examples (besides demonstrating large tRPC code bases? I want to see howScaling tRPCI’ve been seeing issues regarding tRPC routers and performance issues as routers grow. I’m wonderinwhat is the best way to update trpc and its dependencies?Hi all, as the title says, how can i best update trpc and its dependencies? TRPC stands at 10.25.1,Where i can read a journal about tRPC ?I use tRPC for my Final Task in my Bachelor Degree, but i can't found journal about tRPC. Can anyoneDefault Query Function to resume paused mutationsI'm building a React Native App with an offline mode. I implemented a PersistQueryProvider and a bui