myt/Dockerfile.dump

28 lines
554 B
Docker
Raw Normal View History

2020-11-14 14:53:13 +00:00
FROM myvc/server
USER root
COPY \
myvc.config.json \
myvc.structure.sql \
.dump.sql \
2020-11-14 14:53:13 +00:00
./
RUN gosu mysql docker-init.sh \
&& docker-dump.sh myvc.structure \
&& docker-dump.sh .dump \
2020-11-14 14:53:13 +00:00
&& gosu mysql docker-temp-stop.sh
COPY routines ./routines
2020-11-14 14:53:13 +00:00
COPY changes ./changes
COPY myvc.fixtures.sql ./
2020-11-14 14:53:13 +00:00
ARG STAMP=unknown
RUN gosu mysql docker-temp-start.sh \
&& myvc-push.sh \
&& docker-dump.sh myvc.fixtures \
2020-11-14 14:53:13 +00:00
&& gosu mysql docker-temp-stop.sh
RUN echo "[INFO] -> Import finished" \
&& rm -rf /docker-boot
USER mysql