set path for cron
All checks were successful
Build and Push Docker Images / build (push) Successful in 32s
All checks were successful
Build and Push Docker Images / build (push) Successful in 32s
This commit is contained in:
parent
63276ffd08
commit
7429f5f603
@ -14,6 +14,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Set the PATH environment variable
|
||||
ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
# Copy the crontab file to the cron.d directory
|
||||
COPY crontab /etc/cron.d/scraper-cron
|
||||
|
||||
@ -33,4 +36,4 @@ COPY run_scraper.sh /usr/local/bin/run_scraper.sh
|
||||
RUN chmod +x /usr/local/bin/run_scraper.sh
|
||||
|
||||
# Run the command on container startup
|
||||
CMD ["/usr/bin/cron", "-f"]
|
||||
CMD ["cron", "-f"]
|
||||
|
Loading…
Reference in New Issue
Block a user