laphatize
laphatize
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
so u should be fine
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
you are not using the latest version of alpine as it seems
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
mine was an issue with the latest version of alpine
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
ur error is network related
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
ur issue is def diff than mine
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
yeah im not skilled enouugh to help u with this -- maybe make a new thread
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
i had node:alpine before that was all
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
in my example they are not different
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
oh lol
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
whats ur docker file lookin like
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
but ur error is unrelated to this
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
node:lts-alpine3.20 did the trick for me
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
Step #0 - "Build": Please try to install it by hand with yarn add @prisma/client and rerun npx "prisma generate" 🙏.
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
No description
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
Hi, Raphael. I think this issue was happening because of a new version of alpine:latest that was pushed. This works
# Specify the base image
FROM node:lts-alpine3.20


# Set the working directory
WORKDIR /app

# Copy package.json and yarn.lock to the container
COPY package.json yarn.lock ./

# generated prisma files
COPY prisma ./prisma/

# Copy the rest of the application files to the container
COPY . .

# Copy the .env file to the container
#COPY .env ./

# Install dependencies
RUN yarn install

# Generate Prisma Client code
RUN npx prisma generate

EXPOSE 3000

# Start the application

CMD ["yarn", "start"]
# Specify the base image
FROM node:lts-alpine3.20


# Set the working directory
WORKDIR /app

# Copy package.json and yarn.lock to the container
COPY package.json yarn.lock ./

# generated prisma files
COPY prisma ./prisma/

# Copy the rest of the application files to the container
COPY . .

# Copy the .env file to the container
#COPY .env ./

# Install dependencies
RUN yarn install

# Generate Prisma Client code
RUN npx prisma generate

EXPOSE 3000

# Start the application

CMD ["yarn", "start"]
This does not:
```
# Specify the base image
FROM node:lts-alpine3.20


# Set the working directory
WORKDIR /app

# Copy package.json and yarn.lock to the container
COPY package.json yarn.lock ./

# generated prisma files
COPY prisma ./prisma/

# Copy the rest of the application files to the container
COPY . .

# Copy the .env file to the container
#COPY .env ./

# Install dependencies
RUN yarn install

# Generate Prisma Client code
RUN npx prisma generate

EXPOSE 3000

# Start the application

CMD ["yarn", "start"]
```
# Specify the base image
FROM node:lts-alpine3.20


# Set the working directory
WORKDIR /app

# Copy package.json and yarn.lock to the container
COPY package.json yarn.lock ./

# generated prisma files
COPY prisma ./prisma/

# Copy the rest of the application files to the container
COPY . .

# Copy the .env file to the container
#COPY .env ./

# Install dependencies
RUN yarn install

# Generate Prisma Client code
RUN npx prisma generate

EXPOSE 3000

# Start the application

CMD ["yarn", "start"]
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
@RaphaelEtim Do you think you can give me a hand with this?
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
@kappa.ai
28 replies
PPrisma
Created by laphatize on 7/18/2024 in #help-and-questions
Build failure because of prisma?
"Step #0 - "Build": npm warn exec The following package was not found and will be installed: [email protected]" makes no sense
28 replies