Removed some not needed commands
This commit is contained in:
@@ -27,7 +27,6 @@ RUN pip install --no-cache-dir -r files/requirements.txt
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN rm files/db.sqlite
|
|
||||||
RUN /usr/local/bin/alembic -c alembic/alembic.ini upgrade head
|
RUN /usr/local/bin/alembic -c alembic/alembic.ini upgrade head
|
||||||
|
|
||||||
# Command to run the FastAPI application
|
# Command to run the FastAPI application
|
||||||
|
|||||||
@@ -4,12 +4,21 @@ APP_DIR="$HOME/.db-middleware"
|
|||||||
CODE_DIR="$HOME/.db-middleware/code"
|
CODE_DIR="$HOME/.db-middleware/code"
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
echo "Installing the Middleware."
|
echo
|
||||||
|
echo "+------------------------------+"
|
||||||
|
echo "| Installing the Middleware... |"
|
||||||
|
echo "+------------------------------+"
|
||||||
|
echo
|
||||||
|
|
||||||
cd "$CODE_DIR"
|
cd "$CODE_DIR"
|
||||||
|
|
||||||
docker build -t db-middleware .
|
docker build -t db-middleware .
|
||||||
|
|
||||||
echo "Installed the Middleware Successfully."
|
echo
|
||||||
|
echo "+----------------------------------------+"
|
||||||
|
echo "| Installed the Middleware Successfully. |"
|
||||||
|
echo "+----------------------------------------+"
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function for the "upgrade" command
|
# Function for the "upgrade" command
|
||||||
|
|||||||
@@ -49,4 +49,8 @@ cp "$CODE_DIR/scripts/"* "$APP_DIR/scripts/"
|
|||||||
chmod +x "$APP_DIR/scripts/"*
|
chmod +x "$APP_DIR/scripts/"*
|
||||||
|
|
||||||
# Run the manager.sh script with the "install" argument
|
# Run the manager.sh script with the "install" argument
|
||||||
|
echo
|
||||||
|
echo "--------------------"
|
||||||
|
echo
|
||||||
|
|
||||||
"$APP_DIR/scripts/manager.sh" install
|
"$APP_DIR/scripts/manager.sh" install
|
||||||
Reference in New Issue
Block a user