From d83313dd740e912bab4597893e63050f604e95a1 Mon Sep 17 00:00:00 2001 From: Akshay Gaikwad Date: Wed, 6 Apr 2022 13:50:08 +0530 Subject: [PATCH] COPY migration files to docker image The copied migration files are used to run admindb migration. This is not the best solution however could be used as workaround till we support running migrations using go binary itself. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ec91a86..115a2fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,9 @@ LABEL description="Run container" COPY --from=build /build/rcloud-base /usr/bin/rcloud-base WORKDIR /usr/bin -CMD ./rcloud-base +# Copying data for running migrations +# TODO: Support rcloud-base binary to run migrations +COPY ./persistence/migrations/admindb /data/migrations/admindb EXPOSE 10000 EXPOSE 11000