Page MenuHomeDevCentral

No OneTemporary

diff --git a/Dockerfile b/Dockerfile
index 14f2036..17cfac8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,27 +1,26 @@
#
# Nasqueron - Cachet image
#
FROM nasqueron/nginx-php-fpm:novolume
MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
#
# Prepare the container
#
COPY files /
WORKDIR /var/wwwroot/default
RUN git init && git remote add origin https://github.com/cachethq/Cachet.git && \
git fetch && git checkout -t origin/master && \
composer install --no-dev -o && \
- php artisan migrate && \
chown -R app:app /var/wwwroot/default
#
# Run the container
#
CMD ["/usr/local/sbin/init-container"]
diff --git a/files/usr/local/bin/setup-container b/files/usr/local/bin/setup-container
index e8db796..ed6cb97 100755
--- a/files/usr/local/bin/setup-container
+++ b/files/usr/local/bin/setup-container
@@ -1,13 +1,14 @@
#!/usr/bin/env bash
pushd /var/wwwroot/default
if [ -z "$NO_INSTALL" ]; then
+ php artisan migrate --force
php artisan key:generate
php artisan config:cache
- chown app:app .env
+ chown app:app /var/wwwroot/default
fi
# We're done
popd
touch .initialized

File Metadata

Mime Type
text/x-diff
Expires
Sat, Mar 21, 06:42 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3546566
Default Alt Text
(1 KB)

Event Timeline