-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CI/CD workflow): WIP 3 #95 incorrect arch selected for the runner
- Loading branch information
Showing
2 changed files
with
53 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Use Python 3.12 as the base image | ||
FROM python:3.12 | ||
|
||
# Set environment variables for non-interactive installation | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install necessary packages | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
build-essential \ | ||
libssl-dev \ | ||
libffi-dev \ | ||
python3-setuptools \ | ||
git \ | ||
curl \ | ||
&& apt-get clean | ||
|
||
# Install PyInstaller | ||
RUN pip install pyinstaller | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy project files into the container | ||
COPY . . | ||
|
||
# Install Python dependencies | ||
RUN pip install -r requirements.txt | ||
|
||
# Build the project using PyInstaller | ||
CMD ["pyinstaller", "--onedir", "--name", "Money4Band", "main.py", "--hidden-import", "colorama", "--hidden-import", "docker", "--hidden-import", "requests", "--hidden-import", "pyyaml", "--hidden-import", "psutil", "--hidden-import", "yaml", "--hidden-import", "secrets", "--add-data", ".resources:.resources", "--add-data", "config:config", "--add-data", "utils:utils", "--add-data", "legacy_money4bandv3x:legacy_money4bandv3x", "--add-data", "template:template", "--add-data", "LICENSE:LICENSE", "--add-data", "README.md:README.md", "--contents-directory", ".", "-y"] |