From ae571e0abe94e1ddbc77ecfc9387678c1116a4de Mon Sep 17 00:00:00 2001 From: Mihir Motiyani Date: Thu, 15 May 2025 15:37:43 +0530 Subject: [PATCH] Dockerfile added --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9e8f4d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM node:21-alpine as builder + +ARG API_BASE_URL="https://mfs-api.midastix.com" + +ENV REACT_APP_API_BASE_URL $API_BASE_URL + +WORKDIR /app + +COPY package.json package.json +COPY yarn.lock yarn.lock + +RUN yarn install --frozen-lockfile + +COPY . . + +RUN yarn build + + +FROM scratch + +WORKDIR /app + +COPY --from=builder /app/build ./build + +CMD ["sh"] +