Commit b0f78c00 by Tsubasa Namiki

Fixed Dockerfile and entrypoint.sh for Restyaboard v0.1.2

parent fe2e28e9
......@@ -36,7 +36,7 @@ WORKDIR /usr/share/nginx/html
RUN cp restyaboard.conf /etc/nginx/conf.d
RUN cp -R media /tmp
RUN npm install
RUN grunt build
RUN grunt build:live
RUN echo '*/5 * * * * php /usr/share/nginx/htmlserver/php/R/shell/cron.php'\
> /var/spool/cron/root
......
......@@ -4,6 +4,8 @@ set -e
if [ "$1" = 'start' ]; then
# config
sed -i "s/^.*'R_DB_NAME'.*$/define('R_DB_NAME', 'restyaboard');/g" \
/usr/share/nginx/html/server/php/R/config.inc.php
sed -i "s/^.*'R_DB_USER'.*$/define('R_DB_USER', 'restya');/g" \
/usr/share/nginx/html/server/php/R/config.inc.php
sed -i "s/^.*'R_DB_PASSWORD'.*$/define('R_DB_PASSWORD', '${POSTGRES_ENV_POSTGRES_PASSWORD}');/g" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment