Added DB backup and restore
This commit is contained in:
+4
-5
@@ -1,21 +1,20 @@
|
||||
# Base on latest (edge) alpine image
|
||||
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
|
||||
|
||||
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
|
||||
LABEL "Maintainer Jonathan Ervine <docker@ervine.org>"
|
||||
|
||||
# Install updates
|
||||
ENV LANG='en_US.UTF-8' \
|
||||
LANGUAGE='en_US.UTF-8' \
|
||||
TERM='xterm' \
|
||||
VERSION='develop'
|
||||
TERM='xterm'
|
||||
|
||||
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||
apk -U update && \
|
||||
apk -U upgrade --ignore alpine-baselayout && \
|
||||
apk -U add nfs-utils e2fsprogs util-linux&& \
|
||||
apk -U add nfs-utils e2fsprogs util-linux python3 && \
|
||||
rm -rf /tmp/src && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
COPY start.sh /usr/local/bin/start.sh
|
||||
|
||||
CMD [ "/usr/local/bin/start.sh" ]
|
||||
CMD [ "/usr/local/bin/start.sh", "$LIVE_DB", "$BACXKUP_DB" ]
|
||||
|
||||
Reference in New Issue
Block a user