mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
move Dockerfile
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
FROM php:cli
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
cron \
|
||||
unzip \
|
||||
curl \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
supervisor \
|
||||
&& pecl install redis \
|
||||
&& docker-php-ext-install pdo pdo_mysql gd \
|
||||
&& docker-php-ext-enable redis \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer | \
|
||||
php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# install composer dependencies
|
||||
COPY statistics /app
|
||||
|
||||
RUN composer install
|
||||
|
||||
COPY statistics/crontab /etc/cron.d/crontab
|
||||
|
||||
COPY statistics/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
RUN chmod 0644 /etc/cron.d/crontab \
|
||||
&& crontab /etc/cron.d/crontab \
|
||||
&& touch /var/log/cron.log /app/sync.log \
|
||||
&& chmod +x /app/sync.php
|
||||
|
||||
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||
Reference in New Issue
Block a user