commit | author | age | ||
03eabd | 1 | FROM ubi8/nodejs-12 |
MC | 2 | |
31e28b | 3 | # URL of the exchange app |
MC | 4 | # All env vars exposed to the React app must start with REACT_APP |
1264f7 | 5 | ENV REACT_APP_GW_ENDPOINT=PLACEHOLDER |
03eabd | 6 | |
31e28b | 7 | # Cache dependencies |
MC | 8 | COPY package.json . |
1264f7 | 9 | COPY package-lock.json . |
MC | 10 | RUN npm ci --production |
03eabd | 11 | |
31e28b | 12 | # Cache public files |
03eabd | 13 | COPY public ./public |
31e28b | 14 | |
03eabd | 15 | COPY src ./src |
MC | 16 | |
17 | EXPOSE 3000 | |
18 | ||
19 | CMD npm start |