summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKasra Bigdeli <[email protected]>2019-03-11 19:22:08 -0700
committerKasra Bigdeli <[email protected]>2019-03-11 19:22:08 -0700
commit65cc75fddd02bee769cccd254634f67a7d1fb003 (patch)
treecc7326ec5852b15f63bd0b40b82e50ec7a3660ae
parentbcc398e8d0cf685d276063cd1fa61b0f501d5e16 (diff)
downloadcaprover-one-click-apps-65cc75fddd02bee769cccd254634f67a7d1fb003.tar.gz
caprover-one-click-apps-65cc75fddd02bee769cccd254634f67a7d1fb003.zip
Fixed strapi
-rw-r--r--public/v1/apps/strapi.json17
1 files changed, 13 insertions, 4 deletions
diff --git a/public/v1/apps/strapi.json b/public/v1/apps/strapi.json
index 88df294..63acf45 100644
--- a/public/v1/apps/strapi.json
+++ b/public/v1/apps/strapi.json
@@ -9,7 +9,16 @@
"$$cap_appname-mongo"
],
"containerHttpPort": "1337",
- "image": "strapi/strapi:$$cap_strapi_version",
+ "dockerfileLines": [
+ "FROM node:11.1.0-alpine",
+ "WORKDIR /usr/src/api",
+ "RUN echo \"unsafe-perm = true\" >> ~/.npmrc",
+ "RUN npm install -g strapi@$$cap_strapi_version",
+ "ADD https://raw.githubusercontent.com/strapi/strapi-docker/b0b3cab55b993c00690b249a89e09b3db7073fca/strapi.sh ./strapi.sh",
+ "RUN chmod +x ./strapi.sh",
+ "EXPOSE 1337",
+ "CMD [\"./strapi.sh\"]"
+ ],
"volumes": [
"$$cap_appname-data:/usr/src/api/strapi-app"
],
@@ -52,8 +61,8 @@
"variables": [{
"id": "$$cap_strapi_version",
"label": "Strapi Version",
- "defaultValue": "v3.0.0-alpha.14.5",
- "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/strapi/strapi/tags/",
+ "defaultValue": "3.0.0-alpha.24.1",
+ "description": "Checkout their github page for the valid versions https://github.com/strapi/strapi/releases",
"validRegex": "/^([^\\s^\\/])+$/"
},
{
@@ -71,4 +80,4 @@
}
]
-}
+} \ No newline at end of file