Move migrations to separate app
This commit is contained in:
parent
87724bb7b8
commit
c47223f5e9
21 changed files with 55 additions and 815 deletions
|
|
@ -6,7 +6,7 @@ RUN mkdir -p ${APP_DIR}/
|
|||
RUN npm i -g turbo
|
||||
WORKDIR ${APP_DIR}
|
||||
COPY . .
|
||||
RUN turbo prune --scope=@link-stack/bridge-frontend --docker
|
||||
RUN turbo prune --scope=@link-stack/bridge-frontend --scope=@link-stack/bridge-migrations --docker
|
||||
|
||||
FROM base AS installer
|
||||
ARG APP_DIR=/opt/bridge-frontend
|
||||
|
|
@ -18,7 +18,7 @@ RUN npm ci
|
|||
|
||||
COPY --from=builder ${APP_DIR}/out/full/ .
|
||||
RUN npm i -g turbo
|
||||
RUN turbo run build --filter=@link-stack/bridge-frontend
|
||||
RUN turbo run build --filter=@link-stack/bridge-frontend --filter=@link-stack/bridge-migrations
|
||||
|
||||
FROM base AS runner
|
||||
ARG APP_DIR=/opt/bridge-frontend
|
||||
|
|
@ -36,6 +36,7 @@ RUN mkdir -p ${APP_DIR}
|
|||
WORKDIR ${APP_DIR}
|
||||
COPY --from=installer ${APP_DIR}/node_modules/ ./node_modules/
|
||||
COPY --from=installer ${APP_DIR}/apps/bridge-frontend/ ./apps/bridge-frontend/
|
||||
COPY --from=installer ${APP_DIR}/apps/bridge-migrations/ ./apps/bridge-migrations/
|
||||
COPY --from=installer ${APP_DIR}/package.json ./package.json
|
||||
RUN chown -R node:node ${APP_DIR}/
|
||||
WORKDIR ${APP_DIR}/apps/bridge-frontend/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue