daojeil commited on
Commit
e69cda5
·
verified ·
1 Parent(s): 78530bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -161,6 +161,7 @@ RUN apt-get update && apt-get install -y cron git && rm -rf /var/lib/apt/lists/*
161
  COPY --chown=$UID:$GID cron-job.sh /app/cron-job.sh
162
  RUN chmod 777 /app/cron-job.sh && touch /var/log/cron.log && chmod 777 /var/log/cron.log
163
 
 
164
  # Create a crontab file and add it to the cron directory
165
  RUN echo "* * * * * /app/cron-job.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/webui-cron
166
 
@@ -169,7 +170,8 @@ RUN chmod 0644 /etc/cron.d/webui-cron
169
 
170
  # Apply the cron job
171
  RUN crontab /etc/cron.d/webui-cron
172
- RUN chmod 777 /var/run/
 
173
 
174
  EXPOSE 8080
175
 
 
161
  COPY --chown=$UID:$GID cron-job.sh /app/cron-job.sh
162
  RUN chmod 777 /app/cron-job.sh && touch /var/log/cron.log && chmod 777 /var/log/cron.log
163
 
164
+
165
  # Create a crontab file and add it to the cron directory
166
  RUN echo "* * * * * /app/cron-job.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/webui-cron
167
 
 
170
 
171
  # Apply the cron job
172
  RUN crontab /etc/cron.d/webui-cron
173
+ RUN chmod 777 /var/run
174
+ RUN chmod 777 /usr/sbin/cron
175
 
176
  EXPOSE 8080
177