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