FROM node:17.9.1 AS app ENV REACT_APP_ENDPOINT "http://127.0.0.1:5000/" WORKDIR /app COPY package.json . COPY package-lock.json . RUN npm install COPY . . RUN chmod +x /app/test.sh ENTRYPOINT ["/app/test.sh"]