Sometimes builds are fast and others are slow
jhammond2012
PROOP

2 years ago

Some builds take less than a minute, others go the full 30 minutes and timeout.

Is this due to load on Railway or something with my configuration?

3 Replies

jhammond2012
PROOP

2 years ago

If it helps, it gets stuck on:

#9 18.88 [4/4] Building fresh packages...


jhammond2012
PROOP

2 years ago

Also... i tried to follow some other posts and created this Dockerfile:

# Base image
FROM node:18-alpine

# Set working directory
WORKDIR /app

# Copy package.json and yarn.lock before other files
COPY package.json yarn.lock ./

# Install dependencies (this step will be cached if package.json and yarn.lock don't change)
RUN yarn install --production --network-concurrency 3

# Copy the rest of the application code
COPY . .

# Set NODE_ENV to production
ENV NODE_ENV=production

# Expose port
EXPOSE 3000

# Start the app
CMD ["node", "src/app.js"]

2 years ago

Can you deep link to two example builds for one that is fast and one that is slow?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...