BO 1.30.17 env variables for deploy
This commit is contained in:
+1
-6
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user