Skip to content

Commit

Permalink
add migration to docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
scefali committed Jun 9, 2024
1 parent 5d4bd4b commit 04d0617
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions other/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ COPY --from=flyio/litefs:0.5.11 /usr/local/bin/litefs /usr/local/bin/litefs
ADD other/litefs.yml /etc/litefs.yml
RUN mkdir -p /data ${LITEFS_DIR}

# this will cause split brain with multiple machines but I don't know how to fix it
RUN npx prisma migrate dev

ADD . .

CMD ["litefs", "mount"]

0 comments on commit 04d0617

Please sign in to comment.