devhulk
devhulk
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
I just did, missed that from your git message. Rebuilding now.
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
Taking longer then usual though, usually just took 30 sec
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
testing now
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
no worries take your time, I got to finish the CRUD portion of my web service anyway so no shortage of things to work on 👍🏽
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
a few seconds
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
haha thanks, didn't seem like the best idea. Plus i was curious how railway would handle the nginx piece.
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
I also added the link for the whole repo including the docker and nginx files in the description just in case. Thanks for the help!
27 replies
RRailway
Created by devhulk on 7/20/2023 in #✋|help
Long build for dockerfile repo. (Timeout / Error)
FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
27 replies