urania-dev / snapp

Yet Another Url Shortner. A simple excercise to learn Svelte.
https://snapp.li
MIT License
210 stars 11 forks source link

Unexpected SQLite Database in Docker Image #53

Closed IvanLi-CN closed 1 month ago

IvanLi-CN commented 1 month ago

I deployed snapp using Docker (docker.io/uraniadev/snapp: 0.8.6.6) and found an unexpected db.sqlite file.

I suspect a db.sqlite from a specific environment might have been accidentally copied into the Docker image during the build process.

This is preventing me from initializing my admin account correctly.

Could you please check this? It may also include some classified information.

image

After I manually delete this file and restart the container, I can continue.

urania-dev commented 1 month ago

you're absolutely right, i forgot to update entrypoint.sh to delete the local dev db. i'm rebuilding 0.8.6.7, it should fix the bug

urania-dev commented 1 month ago

try now

IvanLi-CN commented 1 month ago

Perfect, I just tried it in a clean environment with the latest mirror and it works great. Thanks for your efforts.