Dockerfile 337 B

123456789101112131415161718
  1. FROM node:11.1.0-alpine
  2. WORKDIR /usr/src/api
  3. RUN echo "unsafe-perm = true" >> ~/.npmrc
  4. RUN npm install -g strapi@3.0.0-alpha.16
  5. COPY strapi.sh ./
  6. RUN chmod +x ./strapi.sh
  7. EXPOSE 1337
  8. COPY healthcheck.js ./
  9. HEALTHCHECK --interval=15s --timeout=5s --start-period=30s \
  10. CMD node /usr/src/api/healthcheck.js
  11. CMD ["./strapi.sh"]