Skip to content

Commit

Permalink
fix: prevent docker volume override source
Browse files Browse the repository at this point in the history
  • Loading branch information
p0n1 committed Nov 15, 2023
1 parent 9ab7db0 commit 556ca6c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ __pycache__
.github
README.md
LICENSE
.vscode
docker-compose.example.yml
examples/
audiobook_output/
private_examples/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ venv/
.DS_Store
Thumbs.db

.vscode

# audio files
audiobook_output/

private_examples/
11 changes: 7 additions & 4 deletions Dockerfile
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" ]

0 comments on commit 556ca6c

Please sign in to comment.