-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker compose rebuild, import lms search to global_functions
- Loading branch information
1 parent
214b738
commit b2953f7
Showing
4 changed files
with
38 additions
and
6 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 |
---|---|---|
@@ -1,7 +1,20 @@ | ||
FROM python:3.12-bookworm | ||
FROM python:3.12 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the requirements file into the container | ||
COPY requirements.txt . | ||
|
||
RUN pip install -r requirements.txt | ||
# Create a virtual environment | ||
RUN python -m venv /app/venv | ||
|
||
# Upgrade pip and install the dependencies in the virtual environment | ||
RUN /app/venv/bin/pip install --upgrade pip | ||
RUN /app/venv/bin/pip install -r requirements.txt | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Set the entrypoint to use the virtual environment's Python interpreter | ||
CMD ["python3"] |
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
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -v # Enable verbose mode | ||
set -e # Exit on error | ||
|
||
# scripts may need to be made executable on some platforms before they can be run | ||
# chmod +x <filename> is the command to do this on unixy systems | ||
|
||
# starts all docker compose services | ||
docker-compose build |