Skip to content

Commit

Permalink
cron dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pancham1603 committed Dec 26, 2023
1 parent a836bd1 commit 1cb3c45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ RUN chmod 0644 /etc/cron.d/cronjob
# Create the log file to be able to run tail
RUN touch /var/log/cron.log

RUN crontab /etc/cron.d/cronjob

# Run cron in the foreground
CMD ["cron", "-f"]

# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
# RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
Expand Down

0 comments on commit 1cb3c45

Please sign in to comment.