docker backup and restore db

This commit is contained in:
tinpee
2016-10-19 06:54:54 +07:00
parent 1c6a8c83ec
commit 423e6e63b1
4 changed files with 40 additions and 9 deletions

View File

@@ -3,12 +3,13 @@ MAINTAINER Tinpee <tinpee.dev@gmail.com>
ADD . /src
WORKDIR /src
RUN pip install flask gunicorn \
&& cp cards-jwasham.db cards.db
RUN pip install flask gunicorn
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
VOLUME /src/db
EXPOSE 8000
CMD ["/entrypoint.sh"]