Dockerfile added
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Mihir Motiyani 2025-05-15 15:37:43 +05:30
parent bdbdfcd63c
commit ae571e0abe
1 changed files with 26 additions and 0 deletions

26
Dockerfile Normal file
View File

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