game-algorithms/frontend/Dockerfile

13 lines
276 B
Docker
Raw Normal View History

2022-08-09 00:38:49 +00:00
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" ]