forked from MRColorR/money4band
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow-linux-arm64.dockerfile
31 lines (24 loc) · 1.14 KB
/
workflow-linux-arm64.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"]