my react application coudnt deploy
ruturajwork
TRIALOP

2 years ago

please help me for the error below docker command i use to cretate a docker image

node block

FROM node:alpine3.16 as nodework

WORKDIR /myapp

COPY package.json .

RUN npm install

COPY . .

RUN npm run build

nginx block

FROM nginx:1.25.3-alpine-slim

WORKDIR /usr/share/nginx/html

RUN rm -rf ./*

COPY --from=nodework /myapp/build .

ENTRYPOINT [ "nginx","-g","daemon off;" ]

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies


Welcome!

Sign in to your Railway account to join the conversation.

Loading...