Dockerfile added
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bdbdfcd63c
commit
ae571e0abe
|
|
@ -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"]
|
||||||
|
|
||||||
Loading…
Reference in New Issue