mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +00:00
cleanup & setting up sync update
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
FROM php:cli
|
||||
|
||||
# Install required dependencies
|
||||
RUN apt-get update && apt-get install -y cron unzip curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN docker-php-ext-install pdo pdo_mysql
|
||||
|
||||
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev \
|
||||
&& pecl install redis && docker-php-ext-enable redis
|
||||
|
||||
# Copy the cron job script
|
||||
WORKDIR /app
|
||||
COPY fetch_and_send.php /app/fetch_and_send.php
|
||||
COPY crontab /etc/cron.d/crontab
|
||||
RUN chmod +x /app/fetch_and_send.php
|
||||
|
||||
# Give execution rights on the cron job file
|
||||
RUN chmod 0644 /etc/cron.d/crontab && crontab /etc/cron.d/crontab
|
||||
|
||||
RUN touch /var/log/cron.log && touch /app/statistics.log
|
||||
|
||||
# Start cron in the foreground
|
||||
CMD ["cron", "-f"]
|
||||
Reference in New Issue
Block a user