| 1 |
FROM mhart/alpine-node:10.7.0 |
| 2 |
WORKDIR /usr/src |
| 3 |
COPY package.json . |
| 4 |
COPY yarn.lock . |
| 5 |
RUN yarn && yarn cache clean --force |
| 6 |
COPY . . |
| 7 |
|
| 8 |
# Run tests |
| 9 |
RUN yarn test |
| 10 |
RUN mkdir /public && echo "<marquee direction="right">All tests passed!</marquee>" > /public/index.html |