docker backup and restore db
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user