myt/server/Dockerfile.dump

34 lines
611 B
Docker

FROM myvc/server
USER root
COPY \
dump/.dump.sql \
dump/structure.sql \
dump/
COPY myvc.config.yml \
./
RUN gosu mysql docker-init.sh \
&& docker-dump.sh dump/structure \
&& docker-dump.sh dump/.dump \
&& gosu mysql docker-temp-stop.sh
COPY routines routines
COPY versions versions
COPY \
dump/fixtures.sql \
dump/.changes \
dump/
ARG STAMP=unknown
RUN gosu mysql docker-temp-start.sh \
&& myvc push --socket \
&& docker-dump.sh dump/fixtures \
&& gosu mysql docker-temp-stop.sh
RUN echo "[LOG] Import finished." \
&& rm -rf /workspace
USER mysql