diff --git a/hosting/single/Dockerfile b/hosting/single/Dockerfile index 62f819e23c..eb959c5e21 100644 --- a/hosting/single/Dockerfile +++ b/hosting/single/Dockerfile @@ -86,6 +86,8 @@ RUN touch /etc/nginx/logs/error.log RUN touch /etc/nginx/logs/nginx.pid EXPOSE 10000 +VOLUME /opt/couchdb/data +VOLUME /minio # must set this just before running ENV NODE_ENV=production diff --git a/hosting/single/runner.sh b/hosting/single/runner.sh index 259fb138fa..fab8431796 100644 --- a/hosting/single/runner.sh +++ b/hosting/single/runner.sh @@ -1,6 +1,6 @@ redis-server --requirepass $REDIS_PASSWORD & /opt/clouseau/bin/clouseau & -/minio/minio server /data & +/minio/minio server /minio & /docker-entrypoint.sh /opt/couchdb/bin/couchdb & /etc/init.d/nginx restart pushd app diff --git a/package.json b/package.json index f7efcef8ea..0a52900ca3 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,8 @@ "build:docker:develop": "node scripts/pinVersions && lerna run build:docker && npm run build:docker:proxy:compose && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh develop && cd -", "build:docker:airgap": "node hosting/scripts/airgapped/airgappedDockerBuild", "build:digitalocean": "cd hosting/digitalocean && ./build.sh && cd -", - "build:docker:single": "lerna run build && lerna run predocker && docker build -f hosting/single/Dockerfile -t budibase:latest .", + "build:docker:single:image": "docker build -f hosting/single/Dockerfile -t budibase:latest .", + "build:docker:single": "lerna run build && lerna run predocker && npm run build:docker:single:image", "build:docs": "lerna run build:docs", "release:helm": "node scripts/releaseHelmChart", "env:multi:enable": "lerna run env:multi:enable",