-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent docker volume override source
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 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
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 |
---|---|---|
|
@@ -20,5 +20,9 @@ venv/ | |
.DS_Store | ||
Thumbs.db | ||
|
||
.vscode | ||
|
||
# audio files | ||
audiobook_output/ | ||
|
||
private_examples/ |
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,14 +1,17 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.11-slim-bookworm | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
# Set the source directory in the container | ||
WORKDIR /app_src | ||
|
||
# Add current directory code to docker | ||
ADD . /app | ||
ADD . /app_src | ||
|
||
# Install any needed packages specified in requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Set this as the default command | ||
ENTRYPOINT [ "python", "epub_to_audiobook.py" ] | ||
ENTRYPOINT [ "python", "/app_src/epub_to_audiobook.py" ] |