Skip to content

Commit

Permalink
Use .env file only for Docker image building process
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed May 10, 2023
1 parent 71a3db5 commit 1291263
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ RUN pipenv run python3 manage.py crontab add
# RUN DOWNLOAD_CYKLISTESOBE_TRACKS_JOB_ID=$(pipenv run python3 manage.py crontab show | sed -n '2,$p' | awk -F ", " '{if(match($2, "download_cyklistesobe_tracks") > 0) print $1}' | awk -F " -> " '{print $1}'); $(crontab -l | sed -n
# "/${DOWNLOAD_CYKLISTESOBE_TRACKS_JOB_ID}/p" | cut -f 6- -d ' ' | sed 's/# django-cronjobs for project//g')
RUN pipenv run python3 manage.py downloadcyklistesobelayer --task download_only
RUN rm .env

USER root
RUN mkdir -p /var/log/supervisor
Expand Down

0 comments on commit 1291263

Please sign in to comment.