Skip to content

Commit 2b0509d

Browse files
committed
chore: run migration everytime ddrive start on docker
1 parent c54cf69 commit 2b0509d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This next major version release 4.0 is ddrive written from scratch. It comes wit
4545
- Added support for `rename` files/folders.
4646
- Added support to `move` file/folder (Only via API, Not sure how to do it with frontend, PR welcomes.)
4747
- Now uses `webhooks` instead of `bot/user tokens` to bypass the discord rate limit
48-
- DDrive now uploads file chunks in parallel with limit. Which significantly increase the upload speed. I was able to upload file with 5GB of size in just 85 seconds.
48+
- DDrive now uploads file chunks in parallel with limit. Which significantly increase the upload speed. I was able to upload file with `5GB of size in just 85 seconds`.
4949
- Public access mode - It is not now possible to provide users read-only access with just one config var
5050
- Batch upload files - Now you can upload multiple files at once from panel. (DClone support has been removed from this version)
5151
- Bug fix - `download reset` for few mobile devices

docker/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ WORKDIR /app
99
# Copy project files
1010
COPY --chown=node:node . /app
1111

12+
# NPM Update
13+
RUN npm update -g npm
14+
1215
# Install packages
1316
RUN npm install
1417

docker/entrypoint

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/usr/bin/env sh
22

3+
cd /app && npm run migration:up
34
node /app/bin/ddrive "$@"

0 commit comments

Comments
 (0)