From b14369f0ccc604667154a81f56eb388cc8fa5baf Mon Sep 17 00:00:00 2001 From: anirudh Date: Mon, 15 Apr 2024 20:31:02 +0530 Subject: [PATCH] altered Dockerfile --- docker-example/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-example/Dockerfile b/docker-example/Dockerfile index 7dc1e5ee..314ed7e0 100644 --- a/docker-example/Dockerfile +++ b/docker-example/Dockerfile @@ -25,7 +25,8 @@ RUN \ # Copy static files out of /app to save space in backend image mv .web/_static /tmp/_static && \ - rm -rf .web && mkdir .web && \ + rm -rf .web && \ + mkdir .web && \ mv /tmp/_static .web/_static # Stage 2: copy artifacts into slim image @@ -37,4 +38,4 @@ COPY --chown=nextpy --from=init /app /app USER nextpy ENV PATH="/app/.venv/bin:$PATH" API_URL=$API_URL -CMD nextpy db migrate && nextpy run --env prod --backend-only +CMD ["sh","-c","nextpy db migrate && nextpy run --env prod --backend-only"]