From 39253c47431d94845570fdaf4aa00d17ed3a9fa7 Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 10 Dec 2019 04:18:26 +0000 Subject: [PATCH] Allow the database to be upgraded from inside the Flask container. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 91160b3..43b5457 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN apk add libxslt # install the application WORKDIR /app -ADD asl_articles asl_articles +COPY asl_articles asl_articles COPY setup.py requirements.txt requirements-dev.txt run_server.py LICENSE.txt ./ RUN pip install -e . @@ -35,6 +35,9 @@ ARG ENABLE_TESTS COPY asl_articles/config/logging.yaml.example asl_articles/config/logging.yaml COPY docker/config/* asl_articles/config/ +# copy the alembic files (so that users can upgrade their database) +COPY alembic alembic + # launch the web server EXPOSE 5000 ENV DBCONN undefined