Skip to content

Commit

Permalink
altered Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudh-hegde committed Apr 15, 2024
1 parent 19c6e2a commit b14369f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]

0 comments on commit b14369f

Please sign in to comment.