BO 1.30.17 env variables for deploy

This commit is contained in:
Tibor Bossanyi (Freelancer)
2021-10-03 11:13:03 +02:00
parent a4499f08f4
commit e939d7a8b3
6 changed files with 8 additions and 9 deletions
+1 -6
View File
@@ -12,21 +12,16 @@ RUN chmod 0644 /etc/cron.d/aitrainer-cron
# Apply cron job
RUN crontab /etc/cron.d/aitrainer-cron
# Create the log file to be able to run tail
RUN touch /var/log/cron.log
RUN pip3 install uwsgi
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY uwsgi_params /var/www/aitrainer.info/
COPY .key ./
ENV DJANGO_KEY="9ö2345iőjfdsasd9ukjhlkdf9hg"
ENV GOOGLE_APPLICATION_CREDENTIALS=/aitrainer_backoffice/aitrainer_backoffice/aitrainer_backoffice/asset/aitrainer-firebase-adminsdk.json
ENV WORKOUTTEST_SETTING=DEPLOY
ENV PORT=8000
EXPOSE 8000
CMD ['cron && tail -f /var/log/cron.log']