forked from harry0703/MoneyPrinterTurbo
-
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.
- Loading branch information
kevin.zhang
committed
Apr 2, 2024
1 parent
c6ec538
commit f3b3c7f
Showing
2 changed files
with
50 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Exclude common Python files and directories | ||
venv/ | ||
__pycache__/ | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
*.pyz | ||
*.pyw | ||
*.pyi | ||
*.egg-info/ | ||
|
||
# Exclude development and local files | ||
.env | ||
.env.* | ||
*.log | ||
*.db | ||
|
||
# Exclude version control system files | ||
.git/ | ||
.gitignore | ||
.svn/ | ||
|
||
storage/ |
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,27 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.10-slim | ||
|
||
# Set the working directory in the container | ||
WORKDIR /usr/src/app | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
imagemagick \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the current directory contents into the container at /usr/src/app | ||
COPY . . | ||
|
||
# Install Python dependencies | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 8080 | ||
|
||
# Command to run the application | ||
CMD ["python", "main.py"] | ||
|
||
# At runtime, mount the config.toml file from the host into the container | ||
# using Docker volumes. Example usage: | ||
# docker run -v /path/to/your/config.toml:/usr/src/app/config.toml -p 8080:8080 moneyprinterturbo |