forked from ajnart/homarr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Issue with migrate script in docker (ajnart#1483)
- Loading branch information
1 parent
0a98be4
commit 6bcef9e
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,10 +25,11 @@ COPY ./src/migrate.ts ./src/migrate.ts | |
RUN apt-get update -y && apt-get install -y openssl | ||
|
||
# Required for migration | ||
RUN cp -r node_modules node_modules_cache | ||
RUN rm -rf node_modules | ||
RUN mv node_modules _node_modules | ||
RUN rm package.json | ||
RUN yarn add typescript ts-node dotenv [email protected] [email protected] @types/better-sqlite3 | ||
RUN mv node_modules node_modules_migrate | ||
RUN mv _node_modules node_modules | ||
|
||
# Expose the default application port | ||
EXPOSE $PORT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,4 +250,4 @@ | |
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters