first draft booting with strapi, mongo, nginx
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user