Vitagliano
Vitagliano
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Thank you so much
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Working fine now @Brody
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
You mean
COPY --from=build-runner /tmp/app/node_modules /app/node_modules
COPY --from=build-runner /tmp/app/node_modules /app/node_modules
?
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
So I might need to define the node version?
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
I'm not sure, I think it's the last one available
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
20.11.0
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
No errors
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Now what?
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Still giving the same error
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
## build runner
FROM node:lts-alpine as build-runner

# Set temp directory
WORKDIR /tmp/app

# Move package.json and yarn.lock
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn install --frozen-lockfile

# Move source files
COPY src ./src
COPY tsconfig.json .
COPY prisma ./prisma

# Generate Prisma Client
RUN npx prisma generate

# Build project
RUN yarn run build

## production runner
FROM node:lts-alpine as prod-runner

# Set work directory
WORKDIR /app

# Copy package.json from build-runner
COPY --from=build-runner /tmp/app/package.json /app/package.json
COPY --from=build-runner /tmp/app/yarn.lock /app/yarn.lock

# Move build files
COPY --from=build-runner /tmp/app/build /app/build

# Start bot
CMD [ "yarn", "run", "start" ]
## build runner
FROM node:lts-alpine as build-runner

# Set temp directory
WORKDIR /tmp/app

# Move package.json and yarn.lock
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn install --frozen-lockfile

# Move source files
COPY src ./src
COPY tsconfig.json .
COPY prisma ./prisma

# Generate Prisma Client
RUN npx prisma generate

# Build project
RUN yarn run build

## production runner
FROM node:lts-alpine as prod-runner

# Set work directory
WORKDIR /app

# Copy package.json from build-runner
COPY --from=build-runner /tmp/app/package.json /app/package.json
COPY --from=build-runner /tmp/app/yarn.lock /app/yarn.lock

# Move build files
COPY --from=build-runner /tmp/app/build /app/build

# Start bot
CMD [ "yarn", "run", "start" ]
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
And what should I use now?
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Tried RUN yarn install --frozen-lockfile
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
I don't know how to do that to be honest
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
What else should I change?
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
## build runner
FROM node:lts-alpine as build-runner

# Set temp directory
WORKDIR /tmp/app

# Move package.json and yarn.lock
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn install

# Move source files
COPY src ./src
COPY tsconfig.json .
COPY prisma ./prisma

# Generate Prisma Client
RUN npx prisma generate

# Build project
RUN yarn run build

## production runner
FROM node:lts-alpine as prod-runner

# Set work directory
WORKDIR /app

# Copy package.json from build-runner
COPY --from=build-runner /tmp/app/package.json /app/package.json
COPY --from=build-runner /tmp/app/yarn.lock /app/yarn.lock

# Move build files
COPY --from=build-runner /tmp/app/build /app/build

# Start bot
CMD [ "yarn", "run", "start" ]
## build runner
FROM node:lts-alpine as build-runner

# Set temp directory
WORKDIR /tmp/app

# Move package.json and yarn.lock
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn install

# Move source files
COPY src ./src
COPY tsconfig.json .
COPY prisma ./prisma

# Generate Prisma Client
RUN npx prisma generate

# Build project
RUN yarn run build

## production runner
FROM node:lts-alpine as prod-runner

# Set work directory
WORKDIR /app

# Copy package.json from build-runner
COPY --from=build-runner /tmp/app/package.json /app/package.json
COPY --from=build-runner /tmp/app/yarn.lock /app/yarn.lock

# Move build files
COPY --from=build-runner /tmp/app/build /app/build

# Start bot
CMD [ "yarn", "run", "start" ]
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
No description
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Still the same
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Even with the yarn.lock file still the same error
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
Not sure if it's using right
51 replies
RRailway
Created by Vitagliano on 5/24/2024 in #✋|help
Cannot find package even installed
No description
51 replies