feature/docker #1

Merged
hardik merged 2 commits from feature/docker into main 2025-08-06 13:07:22 +05:30
1 changed files with 27 additions and 0 deletions
Showing only changes of commit afb7419baa - Show all commits

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM node:21-alpine as builder
ARG API_BASE_URL="https://www.sangwaritaxi.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"]
# new