sostenesapollo
sostenesapollo
Explore posts from servers
RRailway
Created by sostenesapollo on 7/14/2024 in #✋|help
Deployment stuck
I'm using this dockerFile
13 replies
RRailway
Created by sostenesapollo on 7/14/2024 in #✋|help
Deployment stuck
# base node image
FROM node:18-bullseye-slim as base

# set for base and all layers that inherit from it
ENV NODE_ENV production

# Install openssl for Prisma
RUN apt-get update && apt-get install -y openssl

FROM base as deps

WORKDIR /myapp

# Add package.json and yarn.lock
ADD package.json ./
ADD yarn.lock ./
# Install dependencies including dev dependencies
RUN yarn install --frozen-lockfile --dev

# Setup production node_modules
FROM base as production-deps

WORKDIR /myapp

# Copy dependencies from deps stage
COPY --from=deps /myapp/node_modules /myapp/node_modules
ADD package.json ./
ADD yarn.lock ./
# Install production dependencies
RUN yarn install --frozen-lockfile --production

# Build the app
FROM base as build

WORKDIR /myapp

# Copy dependencies and source code from deps stage
COPY --from=deps /myapp/node_modules /myapp/node_modules

ADD prisma .
# Generate Prisma client
RUN npx prisma generate

ADD . .
# Build the app and capture detailed logs
RUN yarn build


# Finally, build the production image with minimal footprint
FROM base

WORKDIR /myapp

# Copy production dependencies and built assets from previous stages
COPY --from=production-deps /myapp/node_modules /myapp/node_modules
COPY --from=build /myapp/node_modules/.prisma /myapp/node_modules/.prisma

COPY --from=build /myapp/build /myapp/build
COPY --from=build /myapp/public /myapp/public
ADD . .

CMD ["yarn", "start"]
# base node image
FROM node:18-bullseye-slim as base

# set for base and all layers that inherit from it
ENV NODE_ENV production

# Install openssl for Prisma
RUN apt-get update && apt-get install -y openssl

FROM base as deps

WORKDIR /myapp

# Add package.json and yarn.lock
ADD package.json ./
ADD yarn.lock ./
# Install dependencies including dev dependencies
RUN yarn install --frozen-lockfile --dev

# Setup production node_modules
FROM base as production-deps

WORKDIR /myapp

# Copy dependencies from deps stage
COPY --from=deps /myapp/node_modules /myapp/node_modules
ADD package.json ./
ADD yarn.lock ./
# Install production dependencies
RUN yarn install --frozen-lockfile --production

# Build the app
FROM base as build

WORKDIR /myapp

# Copy dependencies and source code from deps stage
COPY --from=deps /myapp/node_modules /myapp/node_modules

ADD prisma .
# Generate Prisma client
RUN npx prisma generate

ADD . .
# Build the app and capture detailed logs
RUN yarn build


# Finally, build the production image with minimal footprint
FROM base

WORKDIR /myapp

# Copy production dependencies and built assets from previous stages
COPY --from=production-deps /myapp/node_modules /myapp/node_modules
COPY --from=build /myapp/node_modules/.prisma /myapp/node_modules/.prisma

COPY --from=build /myapp/build /myapp/build
COPY --from=build /myapp/public /myapp/public
ADD . .

CMD ["yarn", "start"]
13 replies
RRailway
Created by sostenesapollo on 7/14/2024 in #✋|help
Deployment stuck
Any idea of what is happening ?
13 replies
RRailway
Created by sostenesapollo on 7/14/2024 in #✋|help
Deployment stuck
No description
13 replies
RRailway
Created by sostenesapollo on 7/14/2024 in #✋|help
Deployment stuck
I don't know what to do, I can't see the error message
13 replies
RRailway
Created by sostenesapollo on 7/14/2024 in #✋|help
Deployment stuck
It's still stuck, any help ?
13 replies
RRailway
Created by sostenesapollo on 7/14/2024 in #✋|help
Deployment stuck
b19b2751-44b4-49a2-b64d-0be0ed08b0b8
13 replies
RRailway
Created by The Trader of Horizell on 7/14/2024 in #✋|help
Deployments taking a very long time.
same here
18 replies
RRailway
Created by sostenesapollo on 4/19/2024 in #✋|help
Deployment stuck
ok
17 replies
RRailway
Created by sostenesapollo on 4/19/2024 in #✋|help
Deployment stuck
before it was working
17 replies
RRailway
Created by sostenesapollo on 4/19/2024 in #✋|help
Deployment stuck
@Brody I'm not able to connect in my socket io server
17 replies
RRailway
Created by sostenesapollo on 4/19/2024 in #✋|help
Deployment stuck
just keep like this
17 replies
RRailway
Created by sostenesapollo on 4/19/2024 in #✋|help
Deployment stuck
No description
17 replies
RRailway
Created by sostenesapollo on 4/19/2024 in #✋|help
Deployment stuck
b19b2751-44b4-49a2-b64d-0be0ed08b0b8
17 replies
RRailway
Created by sostenesapollo on 4/19/2024 in #✋|help
Deployment stuck
b19b2751-44b4-49a2-b64d-0be0ed08b0b8
17 replies
RRailway
Created by sostenesapollo on 4/16/2024 in #✋|help
how to remove docker cache ?
cannot connect to db local
6 replies
RRailway
Created by sostenesapollo on 4/16/2024 in #✋|help
how to remove docker cache ?
No description
6 replies
RRailway
Created by sostenesapollo on 4/16/2024 in #✋|help
how to remove docker cache ?
552412ce-601b-4688-a836-d504b7ff3f56
6 replies
RRailway
Created by sostenesapollo on 2/5/2024 in #✋|help
Questions regading pricing, how to reduce costs
now, yes.
212 replies