first draft booting with strapi, mongo, nginx

This commit is contained in:
2018-12-05 22:20:07 +01:00
commit b60a7508c7
11 changed files with 857 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM node:11.1.0-alpine
WORKDIR /usr/src/api
RUN echo "unsafe-perm = true" >> ~/.npmrc
RUN npm install -g strapi@3.0.0-alpha.16
COPY strapi.sh ./
RUN chmod +x ./strapi.sh
EXPOSE 1337
COPY healthcheck.js ./
HEALTHCHECK --interval=15s --timeout=5s --start-period=30s \
CMD node /usr/src/api/healthcheck.js
CMD ["./strapi.sh"]