Deployment stuck

sostenesapollo
FREE

a year ago

I can't see the error message on deploy

2 Replies

sostenesapollo
FREE

a year ago

b19b2751-44b4-49a2-b64d-0be0ed08b0b8


a year ago

My build just went through - can you try again?


sostenesapollo
FREE

a year ago

hey, mine is not working




sostenesapollo
FREE

a year ago

It's still stuck, any help ?


sostenesapollo
FREE

a year ago

I don't know what to do, I can't see the error message


sostenesapollo
FREE

a year ago

1263938024144633900


sostenesapollo
FREE

a year ago

Any idea of what is happening ?


sostenesapollo
FREE

a year ago

# 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"]

sostenesapollo
FREE

a year ago

I'm using this dockerFile


Loading...
Deployment stuck - Railway Help Station