|
FROM node:alpine
|
|
|
|
COPY build /app/build
|
|
COPY package.json /app/package.json
|
|
|
|
HEALTHCHECK --interval=30s --retries=3 --start-period=10s --timeout=1s \
|
|
CMD wget -q --tries=1 --spider http://localhost:3000/ || exit 1
|
|
|
|
EXPOSE 3000
|
|
|
|
WORKDIR /app
|
|
ENTRYPOINT [ "node", "build" ]
|