mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
Mirror static files in docker #145
This commit is contained in:
parent
6be7c20b16
commit
acb513677d
15
Dockerfile
15
Dockerfile
@ -5,6 +5,21 @@ EXPOSE 5000
|
||||
# Turns off buffering for easier container logging
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Environment variables
|
||||
ENV CACHE_PATH=""
|
||||
ENV DATABASE_URL=""
|
||||
ENV GOOGLE_MAPS_API_KEY=""
|
||||
ENV MAIL_DEFAULT_SENDER=""
|
||||
ENV MAIL_PASSWORD=""
|
||||
ENV MAIL_PORT=""
|
||||
ENV MAIL_SERVER=""
|
||||
ENV MAIL_USERNAME=""
|
||||
ENV PROJECT_ENABLE_CRAWLING=""
|
||||
ENV SECRET_KEY=""
|
||||
ENV SECURITY_PASSWORD_HASH=""
|
||||
ENV SERVER_NAME=""
|
||||
ENV STATIC_FILES_MIRROR=""
|
||||
|
||||
# Install pip requirements
|
||||
COPY requirements.txt .
|
||||
RUN python -m pip install -r requirements.txt
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [[ ! -z "${STATIC_FILES_MIRROR}" ]]; then
|
||||
echo "Copying static files to ${STATIC_FILES_MIRROR}"
|
||||
rsync -a --delete project/static/ "${STATIC_FILES_MIRROR}"
|
||||
fi
|
||||
|
||||
until flask db upgrade
|
||||
do
|
||||
echo "Waiting for postgres server to become available..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user