Commit f3b3c7f kevin.zhang
committed
1 parent c6ec538 commit f3b3c7f Copy full SHA for f3b3c7f
File tree 2 files changed +50
-0
lines changed
2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Exclude common Python files and directories
2
+ venv /
3
+ __pycache__ /
4
+ * .pyc
5
+ * .pyo
6
+ * .pyd
7
+ * .pyz
8
+ * .pyw
9
+ * .pyi
10
+ * .egg-info /
11
+
12
+ # Exclude development and local files
13
+ .env
14
+ .env. *
15
+ * .log
16
+ * .db
17
+
18
+ # Exclude version control system files
19
+ .git /
20
+ .gitignore
21
+ .svn /
22
+
23
+ storage /
Original file line number Diff line number Diff line change
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /usr/src/app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ imagemagick \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy the current directory contents into the container at /usr/src/app
14
+ COPY . .
15
+
16
+ # Install Python dependencies
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Expose the port the app runs on
20
+ EXPOSE 8080
21
+
22
+ # Command to run the application
23
+ CMD ["python" , "main.py" ]
24
+
25
+ # At runtime, mount the config.toml file from the host into the container
26
+ # using Docker volumes. Example usage:
27
+ # docker run -v /path/to/your/config.toml:/usr/src/app/config.toml -p 8080:8080 moneyprinterturbo
You can’t perform that action at this time.
0 commit comments